didChangeOcclusionStateNotification
A notification that the window object’s occlusion state changed.
Declaration
class let didChangeOcclusionStateNotification: NSNotification.NameDiscussion
The notification object is the NSWindow object whose occlusion state changed. This notification doesn’t 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
didBecomeKeyNotificationdidBecomeMainNotificationdidChangeScreenNotificationdidChangeScreenProfileNotificationdidDeminiaturizeNotificationdidEndSheetNotificationdidEndLiveResizeNotificationdidExposeNotificationdidMiniaturizeNotificationdidMoveNotificationdidResignKeyNotificationdidResignMainNotificationdidResizeNotificationdidUpdateNotificationwillBeginSheetNotification