---
title: "toolbarSelectableItemIdentifiers(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstabviewcontroller/toolbarselectableitemidentifiers(_:)"
---

# toolbarSelectableItemIdentifiers(_:)

Returns the array of identifier strings for the selectable toolbar items

## Declaration

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

## Parameters

- `toolbar`: The toolbar making the request.

## Return Value

Return Value An array of NSString objects, each of which contains an identifier for a toolbar item that may be selected.

## Discussion

Discussion This method is called for tab view interfaces that use the NSTabViewController.TabStyle.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 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.

## See Also

### Responding to Toolbar Events

- [toolbar(_:itemForItemIdentifier:willBeInsertedIntoToolbar:)](appkit/nstabviewcontroller/toolbar(_:itemforitemidentifier:willbeinsertedintotoolbar:).md)
- [toolbarAllowedItemIdentifiers(_:)](appkit/nstabviewcontroller/toolbaralloweditemidentifiers(_:).md)
- [toolbarDefaultItemIdentifiers(_:)](appkit/nstabviewcontroller/toolbardefaultitemidentifiers(_:).md)
