NSWindowDidChangeBackingPropertiesNotification

Static NSWindowDidChangeBackingPropertiesNotification 

Source
pub unsafe static NSWindowDidChangeBackingPropertiesNotification: &'static NSNotificationName
Available on crate feature NSWindow only.
Expand description

NSWindowDidChangeBackingPropertiesNotificationis posted on 10.7.3 and later, when a window’s backingScaleFactorand/or its colorSpacechanges. When running on a system version where this new notification is available, applications should use it instead of NSWindowDidChangeScreenProfileNotificationto 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 backingScaleFactorand colorSpace.You can compare these with the window’s new backingScaleFactorand colorSpaceat the time of the notification, to determine which of these two properties (potentially both) changed.

See also Apple’s documentation