Global Variable

NSWindowDidChangeOcclusionStateNotification

Posted when the window’s occlusion state changes.

Declaration

const NSNotificationName NSWindowDidChangeOcclusionStateNotification;

Discussion

The notification object is the NSWindow object whose occlusion state has changed. This notification does not contain a userInfo dictionary.

This notification indicates a change in the window’s occlusion state; it doesn’t indicate a change in the occlusion region. When you receive this notification, you can get the window’s current occlusion state and—based on the result—you may want to increase responsiveness and save power by halting expensive operations that the user can’t see.

See Also

Notifications

NSWindowDidBecomeKeyNotification

Posted whenever an NSWindow object becomes the key window.

NSWindowDidBecomeMainNotification

Posted whenever an NSWindow object becomes the main window.

NSWindowDidChangeScreenNotification

Posted whenever a portion of an NSWindow object’s frame moves onto or off of a screen.

NSWindowDidChangeScreenProfileNotification

Posted whenever the display profile for the screen containing the window changes.

NSWindowDidDeminiaturizeNotification

Posted whenever an NSWindow object is deminimized.

NSWindowDidEndSheetNotification

Posted whenever an NSWindow object closes an attached sheet.

NSWindowDidEndLiveResizeNotification

Posted after the user resizes a window.

NSWindowDidExposeNotification

Posted whenever a portion of a nonretained NSWindow object is exposed, whether by being ordered in front of other windows or by other windows being removed from in front of it.

NSWindowDidMiniaturizeNotification

Posted whenever an NSWindow object is minimized.

NSWindowDidMoveNotification

Posted whenever an NSWindow object is moved.

NSWindowDidResignKeyNotification

Posted whenever an NSWindow object resigns its status as key window.

NSWindowDidResignMainNotification

Posted whenever an NSWindow object resigns its status as main window.

NSWindowDidResizeNotification

Posted whenever an NSWindow object’s size changes.

NSWindowDidUpdateNotification

Posted whenever an NSWindow object receives an update message.

NSWindowWillBeginSheetNotification

Posted whenever an NSWindow object is about to open a sheet.

NSWindowWillCloseNotification

Posted whenever an NSWindow object is about to close.

NSWindowWillMiniaturizeNotification

Posted whenever an NSWindow object is about to be minimized.

NSWindowWillMoveNotification

Posted whenever an NSWindow object is about to move.

NSWindowWillStartLiveResizeNotification

Posted before the user resizes a window.

NSWindowWillEnterFullScreenNotification

Posted when the window will enter full screen mode.

NSWindowDidEnterFullScreenNotification

Posted when the window entered full screen mode.

NSWindowWillExitFullScreenNotification

Posted when the window will exit full screen mode.

NSWindowDidExitFullScreenNotification

Posted when the window did exit full screen mode.

NSWindowWillEnterVersionBrowserNotification

Posted when the window will enter version browser mode.

NSWindowDidEnterVersionBrowserNotification

Posted when the window will enter version browser mode.

NSWindowWillExitVersionBrowserNotification

Posted when the window will exit version browser mode.

NSWindowDidExitVersionBrowserNotification

Posted when the window did exit version browser mode.

NSWindowDidChangeBackingPropertiesNotification

Posted when the window backing properties change.