<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbarDelegate/toolbarAllowedItemIdentifiers(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSToolbarDelegate(im)toolbarAllowedItemIdentifiers:"
  },
  "title" : "toolbarAllowedItemIdentifiers(_:)"
}
-->

# toolbarAllowedItemIdentifiers(_:)

Asks the delegate to provide the items allowed on the toolbar.

```
@MainActor optional func toolbarAllowedItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier]
```

## Parameters

`toolbar`

The toolbar whose allowed item identifiers are to be returned.

## Return Value

An array of toolbar item identifiers, each of which represents an item that appears in the customization palette. Arrange the identifiers in the order you want them to appear in the palette, with the first item appearing on the palette’s leading edge.

## Discussion

Include all of your toolbar’s items, including standard ones defined by [`NSToolbar.Identifier`](/documentation/AppKit/NSToolbar/Identifier-swift.typealias). The array must include all of the default menu items in your toolbar.

> Important:
> Even though this is an optional method, you must implement it if you create the toolbar programatically.

---

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)