pub unsafe static NSWindowDidChangeBackingPropertiesNotification: &'static NSNotificationName
NSWindow
only.Expand description
NSWindowDidChangeBackingPropertiesNotification
is posted on 10.7.3 and later, when a window’s
backingScaleFactor
and/or its
colorSpace
changes. When running on a system version where this new notification is available, applications should use it instead of
NSWindowDidChangeScreenProfileNotification
to watch for changes to either of these backing store properties. Many applications won’t have any need to watch for this notification, but those that perform sophisticated color handling or manually manage their own caches of window-resolution-and/or/colorspace-appropriate bitmapped images will find this notification useful, as a prompt to invalidate their caches or schedule other reassessment for the new resolution and/or color space as needed. The notification’s userInfo dictionary specifies the window’s previous
backingScaleFactor
and
colorSpace.
You can compare these with the window’s new
backingScaleFactor
and
colorSpace
at the time of the notification, to determine which of these two properties (potentially both) changed.
See also Apple’s documentation