<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/didRenameVolumeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSWorkspaceDidRenameVolumeNotification"
  },
  "title" : "didRenameVolumeNotification"
}
-->

# didRenameVolumeNotification

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

```
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`](/documentation/AppKit/NSWorkspace) instance. The `userInfo` dictionary may contain the following keys:

- [`localizedVolumeNameUserInfoKey`](/documentation/AppKit/NSWorkspace/localizedVolumeNameUserInfoKey)
- [`volumeURLUserInfoKey`](/documentation/AppKit/NSWorkspace/volumeURLUserInfoKey)
- [`oldLocalizedVolumeNameUserInfoKey`](/documentation/AppKit/NSWorkspace/oldLocalizedVolumeNameUserInfoKey)
- [`oldVolumeURLUserInfoKey`](/documentation/AppKit/NSWorkspace/oldVolumeURLUserInfoKey)

> Important:
> To receive this notification, use ``doc://com.apple.appkit/documentation/AppKit/NSWorkspace/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`](/documentation/AppKit/NSWorkspace/DidRenameVolumeMessage).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)