Contents

didUnmountNotification

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

Declaration

class let didUnmountNotification: NSNotification.Name

Discussion

This notification posts even if a volume becomes forcibly and immediately unavailable, such as when simply unplugging a drive.

The notification object is the shared NSWorkspace instance. The userInfo dictionary contains a key @"NSDevicePath" that returns the path where the device mounts as a string.

See Also

Responding to Environment Notifications