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

# toolbarSelectableItemIdentifiers(_:)

Asks the delegate to provide the set of selectable items in the toolbar.

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

## Parameters

`toolbar`

The toolbar that contains the items.

## Return Value

An array of item identifiers, each of which corresponds to an [`NSToolbarItem`](/documentation/AppKit/NSToolbarItem) that should display a selection indicator in the specified toolbar.

## Discussion

Use this method to return the complete list of toolbar items that support selection. When someone selects one of the returned items, the toolbar automatically displays that item with a visual highlight. The toolbar also places the currently selected item in its [`selectedItemIdentifier`](/documentation/AppKit/NSToolbar/selectedItemIdentifier) property.

---

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)