---
title: "toolbarAllowedItemIdentifiers(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstoolbardelegate/toolbaralloweditemidentifiers(_:)"
---

# toolbarAllowedItemIdentifiers(_:)

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

## Declaration

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

## Parameters

- `toolbar`: The toolbar whose allowed item identifiers are to be returned.

## Return Value

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

Discussion Include all of your toolbar’s items, including standard ones defined by NSToolbar.Identifier. 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.

## See Also

### Configuring the behavior of items

- [toolbarDefaultItemIdentifiers(_:)](appkit/nstoolbardelegate/toolbardefaultitemidentifiers(_:).md)
- [toolbarImmovableItemIdentifiers(_:)](appkit/nstoolbardelegate/toolbarimmovableitemidentifiers(_:).md)
- [toolbarSelectableItemIdentifiers(_:)](appkit/nstoolbardelegate/toolbarselectableitemidentifiers(_:).md)
- [toolbar(_:itemIdentifier:canBeInsertedAt:)](appkit/nstoolbardelegate/toolbar(_:itemidentifier:canbeinsertedat:).md)
