<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbar/identifier-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSToolbar(py)identifier"
  },
  "title" : "identifier"
}
-->

# identifier

The value you use to identify the toolbar in your app.

```
var identifier: NSToolbar.Identifier { get }
```

## Discussion

Use this property to distinguish toolbars in your app. Multiple toolbars can share the same identifier, and you might do so for windows that display similar content. When two or more toolbars share an identifier, they synchronize their state and display the same set of items.

If the toolbar autosaves its contents, the system associates the configuration data with this identifier.

## See Also

[`autosavesConfiguration`](/documentation/AppKit/NSToolbar/autosavesConfiguration)

A Boolean value that indicates whether the toolbar autosaves its configuration.



---

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)