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

# toolbarSelectableItemIdentifiers(_:)

Returns the array of identifier strings for the selectable toolbar items

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

## Parameters

`toolbar`

The toolbar making the request.

## Return Value

An array of <doc://com.apple.documentation/documentation/Foundation/NSString> objects, each of which contains an identifier for a toolbar item that may be selected.

## Discussion

This method is called for tab view interfaces that use the [`NSTabViewController.TabStyle.toolbar`](/documentation/AppKit/NSTabViewController/TabStyle-swift.enum/toolbar) style. Use this method to indicate which toolbar items are selectable. When an item is selected, the toolbar displays it with a visual highlight and updates the [`selectedTabViewItemIndex`](/documentation/AppKit/NSTabViewController/selectedTabViewItemIndex) property. Typically, the toolbar items associated with tabs are selectable so that the user can tell which tab is selected.

If you override this method, you must call `super` at some point in your implementation. The default implementation of this method returns the identifiers for all toolbar items that correspond to tabs in the tab bar interface.

---

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)