<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbarUserInfoKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSToolbarUserInfoKey"
  },
  "title" : "NSToolbarUserInfoKey"
}
-->

# NSToolbarUserInfoKey

Constants for specifying toolbar-related information in notifications.

```
struct NSToolbarUserInfoKey
```

## Topics

### Getting the Item Key

[`static let itemKey: NSToolbarUserInfoKey`](/documentation/AppKit/NSToolbarUserInfoKey/itemKey)

A key that specifies the toolbar item associated with the notification.

### Creating a Key

[`init(rawValue: String)`](/documentation/AppKit/NSToolbarUserInfoKey/init(rawValue:))

### Type Properties

[`static let newIndexKey: NSToolbarUserInfoKey`](/documentation/AppKit/NSToolbarUserInfoKey/newIndexKey)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)