---
title: didUnmountNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsworkspace/didunmountnotification
---

# didUnmountNotification

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

## Declaration

```swift
class let didUnmountNotification: NSNotification.Name
```

## Discussion

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. important: To receive this notification, use notificationCenter to register for it. If you use a different notification center to register, you won’t receive the notification. To observe this notification using Swift concurrency, use NSWorkspace.DidUnmountVolumeMessage.

## See Also

### Responding to Environment Notifications

- [willLaunchApplicationNotification](appkit/nsworkspace/willlaunchapplicationnotification.md)
- [didLaunchApplicationNotification](appkit/nsworkspace/didlaunchapplicationnotification.md)
- [didTerminateApplicationNotification](appkit/nsworkspace/didterminateapplicationnotification.md)
- [sessionDidBecomeActiveNotification](appkit/nsworkspace/sessiondidbecomeactivenotification.md)
- [sessionDidResignActiveNotification](appkit/nsworkspace/sessiondidresignactivenotification.md)
- [didHideApplicationNotification](appkit/nsworkspace/didhideapplicationnotification.md)
- [didUnhideApplicationNotification](appkit/nsworkspace/didunhideapplicationnotification.md)
- [didActivateApplicationNotification](appkit/nsworkspace/didactivateapplicationnotification.md)
- [didDeactivateApplicationNotification](appkit/nsworkspace/diddeactivateapplicationnotification.md)
- [didRenameVolumeNotification](appkit/nsworkspace/didrenamevolumenotification.md)
- [didMountNotification](appkit/nsworkspace/didmountnotification.md)
- [willUnmountNotification](appkit/nsworkspace/willunmountnotification.md)
- [didChangeFileLabelsNotification](appkit/nsworkspace/didchangefilelabelsnotification.md)
- [activeSpaceDidChangeNotification](appkit/nsworkspace/activespacedidchangenotification.md)
- [didWakeNotification](appkit/nsworkspace/didwakenotification.md)
