---
title: didRenameVolumeNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsworkspace/didrenamevolumenotification
---

# didRenameVolumeNotification

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

## Declaration

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

## Discussion

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: localizedVolumeNameUserInfoKey volumeURLUserInfoKey oldLocalizedVolumeNameUserInfoKey oldVolumeURLUserInfoKey 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.DidRenameVolumeMessage.

## 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)
- [didMountNotification](appkit/nsworkspace/didmountnotification.md)
- [willUnmountNotification](appkit/nsworkspace/willunmountnotification.md)
- [didUnmountNotification](appkit/nsworkspace/didunmountnotification.md)
- [didChangeFileLabelsNotification](appkit/nsworkspace/didchangefilelabelsnotification.md)
- [activeSpaceDidChangeNotification](appkit/nsworkspace/activespacedidchangenotification.md)
- [didWakeNotification](appkit/nsworkspace/didwakenotification.md)
