Type Property

sessionDidBecomeActiveNotification

A notification that the workspace posts after a user session is switched in.

Declaration

class let sessionDidBecomeActiveNotification: NSNotification.Name

Discussion

This notification allows an app to re-enable some processing when a switched out session gets switched back in, for example.

The notification object is the shared NSWorkspace instance. The notification does not contain a userInfo dictionary.

See Also

Responding to Environment Notifications

class let willLaunchApplicationNotification: NSNotification.Name

A notification that the workspace posts when the Finder is about to launch an app.

class let didLaunchApplicationNotification: NSNotification.Name

A notification that the workspace posts when a new app has started up.

class let didTerminateApplicationNotification: NSNotification.Name

A notification that the workspace posts when an app finishes executing.

class let sessionDidResignActiveNotification: NSNotification.Name

A notification that the workspace posts before a user session is switched out.

class let didHideApplicationNotification: NSNotification.Name

A notification that the workspace posts when the Finder hid an app.

class let didUnhideApplicationNotification: NSNotification.Name

A notification that the workspace posts when the Finder unhid an app.

class let didActivateApplicationNotification: NSNotification.Name

A notification that the workspace posts when the Finder is about to activate an app.

class let didDeactivateApplicationNotification: NSNotification.Name

A notification that the workspace posts when the Finder deactivated an app.

class let didRenameVolumeNotification: NSNotification.Name

A notification that the workspace posts when a volume changes its name or mount path.

class let didMountNotification: NSNotification.Name

A notification that the workspace posts when a new device has been mounted.

class let willUnmountNotification: NSNotification.Name

A notification that the workspace posts when the Finder is about to unmount a device.

class let didUnmountNotification: NSNotification.Name

A notification that the workspace posts when the Finder unmounts a device.

class let didChangeFileLabelsNotification: NSNotification.Name

A notification that the workspace posts when the Finder file labels or colors change.

class let activeSpaceDidChangeNotification: NSNotification.Name

A notification that the workspace posts when a Spaces change occurs.

class let didWakeNotification: NSNotification.Name

A notification that the workspace posts when the machine wakes from sleep.

class let willPowerOffNotification: NSNotification.Name

A notification that the workspace posts when the user requests a logout or powers off the machine.

class let willSleepNotification: NSNotification.Name

A notification that the workspace posts before the machine goes to sleep.

class let screensDidSleepNotification: NSNotification.Name

A notification that the workspace posts when the machine’s screen goes to sleep.

class let screensDidWakeNotification: NSNotification.Name

A notification that the workspace posts when the machine’s screens wake.

class let accessibilityDisplayOptionsDidChangeNotification: NSNotification.Name

A notification that the workspace posts when any of the accessibility display options change.

class let localizedVolumeNameUserInfoKey: String

A string containing the user-visible name of the volume.

class let volumeURLUserInfoKey: String

A URL containing the mount path of the volume.

class let oldLocalizedVolumeNameUserInfoKey: String

A string containing the old user-visible name of the volume

class let oldVolumeURLUserInfoKey: String

A URL containing the old mount path of the volume