Posted when the Finder did unmount a device.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
class let didUnmountNotification: NSNotification.Name
Discussion
This notification is delivered even if a volume was forcibly and immediately made unavailable, such as when a drive is simply unplugged.
The notification object is the shared NSWorkspace
instance. The user
dictionary contains a key @"NSDevice
that returns the path where the device was mounted, as a string.