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

# NSToolbarItem.Identifier

Constants for the standard toolbar items that the system provides.

```
struct Identifier
```

## Overview

If you configure an [`NSToolbarItem`](/documentation/AppKit/NSToolbarItem) in Interface Builder with one of the standard identifiers, AppKit configures the toolbar item for you automatically when you load your interface. Similarly, if your toolbar delegate returns them as part of the default or allowed set of items, AppKit handles their configuration. When your delegate provides standard identifiers, AppKit doesn’t call the [`toolbar(_:itemForItemIdentifier:willBeInsertedIntoToolbar:)`](/documentation/AppKit/NSToolbarDelegate/toolbar(_:itemForItemIdentifier:willBeInsertedIntoToolbar:)) method for them.

## Topics

### Getting the standard item identifiers

[`space`](/documentation/AppKit/NSToolbarItem/Identifier/space)

The identifier for a toolbar item that displays an empty space with a standard fixed size.

[`flexibleSpace`](/documentation/AppKit/NSToolbarItem/Identifier/flexibleSpace)

The identifier for a toolbar item that displays an empty space with a flexible width.

[`cloudSharing`](/documentation/AppKit/NSToolbarItem/Identifier/cloudSharing)

The identifier for a toolbar item that tells your app to display the iCloud sharing interface.

[`print`](/documentation/AppKit/NSToolbarItem/Identifier/print)

The identifier for a toolbar item that tells your app to print the current document.

[`showColors`](/documentation/AppKit/NSToolbarItem/Identifier/showColors)

The identifier for a toolbar item that shows the standard color panel.

[`showFonts`](/documentation/AppKit/NSToolbarItem/Identifier/showFonts)

The identifier for a toolbar item that shows the standard font panel.

[`toggleSidebar`](/documentation/AppKit/NSToolbarItem/Identifier/toggleSidebar)

The identifier for a toolbar item that displays a sidebar.

[`sidebarTrackingSeparator`](/documentation/AppKit/NSToolbarItem/Identifier/sidebarTrackingSeparator)

The identifier for a toolbar item that displays a tracking separator aligned with the sidebar divider in a split view.

[`primarySidebarTrackingSeparatorItemIdentifier`](/documentation/AppKit/NSToolbarItem/Identifier/primarySidebarTrackingSeparatorItemIdentifier)

The identifier for a toolbar item that displays a tracking separator aligned with the primary divider in a split view.

[`supplementarySidebarTrackingSeparatorItemIdentifier`](/documentation/AppKit/NSToolbarItem/Identifier/supplementarySidebarTrackingSeparatorItemIdentifier)

The identifier for a toolbar item that displays a tracking separator aligned with the secondary divider in a split view.

[`inspectorTrackingSeparator`](/documentation/AppKit/NSToolbarItem/Identifier/inspectorTrackingSeparator)

Creates a new `NSTrackingSeparatorToolbarItem` and automatically configures it to track the divider of the inspector if one is discovered.

[`toggleInspector`](/documentation/AppKit/NSToolbarItem/Identifier/toggleInspector)

The identifier for a toolbar item that displays an inspector.

### Creating an identifier

[`init(_:)`](/documentation/AppKit/NSToolbarItem/Identifier/init(_:))

Creates a toolbar item identifier.

[`init(rawValue:)`](/documentation/AppKit/NSToolbarItem/Identifier/init(rawValue:))

Creates a toolbar item identifier with the specified raw value.

### Deprecated

[`customizeToolbar`](/documentation/AppKit/NSToolbarItem/Identifier/customizeToolbar)

The Customize item, which shows the customization palette.

[`separator`](/documentation/AppKit/NSToolbarItem/Identifier/separator)

The Separator item.



---

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)