Type Property

didChangeOcclusionStateNotification

Posted when the window’s occlusion state changes.

Declaration

class let didChangeOcclusionStateNotification: NSNotification.Name

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

class let didBecomeKeyNotification: NSNotification.Name

Posted whenever an NSWindow object becomes the key window.

class let didBecomeMainNotification: NSNotification.Name

Posted whenever an NSWindow object becomes the main window.

class let didChangeScreenNotification: NSNotification.Name

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

class let didChangeScreenProfileNotification: NSNotification.Name

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

class let didDeminiaturizeNotification: NSNotification.Name

Posted whenever an NSWindow object is deminimized.

class let didEndSheetNotification: NSNotification.Name

Posted whenever an NSWindow object closes an attached sheet.

class let didExposeNotification: NSNotification.Name

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.

class let didMiniaturizeNotification: NSNotification.Name

Posted whenever an NSWindow object is minimized.

class let didMoveNotification: NSNotification.Name

Posted whenever an NSWindow object is moved.

class let didResignKeyNotification: NSNotification.Name

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

class let didResignMainNotification: NSNotification.Name

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

class let didResizeNotification: NSNotification.Name

Posted whenever an NSWindow object’s size changes.

class let didUpdateNotification: NSNotification.Name

Posted whenever an NSWindow object receives an update() message.

class let willBeginSheetNotification: NSNotification.Name

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

class let willCloseNotification: NSNotification.Name

Posted whenever an NSWindow object is about to close.

class let willMiniaturizeNotification: NSNotification.Name

Posted whenever an NSWindow object is about to be minimized.

class let willMoveNotification: NSNotification.Name

Posted whenever an NSWindow object is about to move.

class let willEnterFullScreenNotification: NSNotification.Name

Posted when the window will enter full screen mode.

class let didEnterFullScreenNotification: NSNotification.Name

Posted when the window entered full screen mode.

class let willExitFullScreenNotification: NSNotification.Name

Posted when the window will exit full screen mode.

class let didExitFullScreenNotification: NSNotification.Name

Posted when the window did exit full screen mode.

class let willEnterVersionBrowserNotification: NSNotification.Name

Posted when the window will enter version browser mode.

class let didEnterVersionBrowserNotification: NSNotification.Name

Posted when the window will enter version browser mode.

class let willExitVersionBrowserNotification: NSNotification.Name

Posted when the window will exit version browser mode.

class let didExitVersionBrowserNotification: NSNotification.Name

Posted when the window did exit version browser mode.

class let didChangeBackingPropertiesNotification: NSNotification.Name

Posted when the window backing properties change.