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

# toolbarImmovableItemIdentifiers(_:)

Asks the delegate to provide the items that people can’t remove from the toolbar or rearrange during the customization process.

## Declaration

```swift
@MainActor optional func toolbarImmovableItemIdentifiers(_ toolbar: NSToolbar) -> Set<NSToolbarItem.Identifier>
```

## Parameters

- `toolbar`: The toolbar that contains the items.

## Return Value

Return Value The set of item identifiers that people can’t remove from the toolbar or move to other locations in the toolbar. Return an empty set to let someone customize all toolbar items.

## Discussion

Discussion Implement this method in your delegate and return any items you don’t want people to remove or rearrange. If you don’t implement this method, the toolbar lets people rearrange and remove all toolbar items.

## See Also

### Configuring the behavior of items

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