toolbarAllowedItemIdentifiers(_:)
Asks the delegate to provide the items allowed on the toolbar.
Declaration
@MainActor optional func toolbarAllowedItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier]Parameters
- toolbar:
The toolbar whose allowed item identifiers are to be returned.
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
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.