Global Variable

NSApplicationDidChangeOcclusionStateNotification

Posted when the app’s occlusion state changes.

Declaration

const NSNotificationName NSApplicationDidChangeOcclusionStateNotification;

Discussion

Upon receiving this notification, you can query the app for its occlusion state. Note that this only notifies about changes in the state of the occlusion, not when the occlusion region changes. You can use this notification to increase responsiveness and save power by halting any expensive calculations that the user can not see.

See Also

Notifications

NSApplicationDidBecomeActiveNotification

Posted immediately after the app becomes active.

NSApplicationDidChangeScreenParametersNotification

Posted when the configuration of the displays attached to the computer is changed.

NSApplicationDidFinishLaunchingNotification

Posted at the end of the finishLaunching method to indicate that the app has completed launching and is ready to run.

NSApplicationDidHideNotification

Posted at the end of the hide: method to indicate that the app is now hidden.

NSApplicationDidResignActiveNotification

Posted immediately after the app gives up its active status to another app.

NSApplicationDidUnhideNotification

Posted at the end of the unhideWithoutActivation method to indicate that the app is now visible.

NSApplicationDidUpdateNotification

Posted at the end of the updateWindows method to indicate that the app has finished updating its windows.

NSApplicationWillBecomeActiveNotification

Posted immediately before the app becomes active.

NSApplicationWillFinishLaunchingNotification

Posted at the start of the finishLaunching method to indicate that the app has completed its initialization process and is about to finish launching.

NSApplicationWillHideNotification

Posted at the start of the hide: method to indicate that the app is about to be hidden.

NSApplicationWillResignActiveNotification

Posted immediately before the app gives up its active status to another app.

NSApplicationWillTerminateNotification

Posted by the terminate: method to indicate that the app will terminate.

NSApplicationWillUnhideNotification

Posted at the start of the unhideWithoutActivation method to indicate that the app is about to become visible.

NSApplicationWillUpdateNotification

Posted at the start of the updateWindows method to indicate that the app is about to update its windows.

NSApplicationDidFinishRestoringWindowsNotification

Posted when the app is finished restoring windows.