Type Property

didRenameVolumeNotification

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

Declaration

class let didRenameVolumeNotification: NSNotification.Name

Discussion

These notifications typically change simultaneously, in which case the workspace posts only one notification.

The notification object is the shared NSWorkspace instance. The userInfo dictionary may contain the following keys:

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 sessionDidBecomeActiveNotification: NSNotification.Name

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

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 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