Instance Method

toolbarDefaultItemIdentifiers(_:)

Sent to discover the default item identifiers for a toolbar.

Declaration

optional func toolbarDefaultItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier]

Parameters

toolbar

The toolbar whose default item identifiers are to be returned.

Return Value

An array of toolbar item identifiers for toolbar, specifying the contents and the order of the items in the default toolbar configuration.

Discussion

During initialization of toolbar, this method is called only if a toolbar configuration for the identifier of toolbar is not found in the user preferences. This method is called during initialization of the toolbar customization palette.

See Also

Configuring a Toolbar

func toolbar(NSToolbar, itemForItemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar: Bool) -> NSToolbarItem?

Sent to request a new toolbar item; returns a toolbar item of the identified kind for the specified toolbar.

func toolbarAllowedItemIdentifiers(NSToolbar) -> [NSToolbarItem.Identifier]

Sent to discover the allowed item identifiers for a toolbar.

func toolbarSelectableItemIdentifiers(NSToolbar) -> [NSToolbarItem.Identifier]

Sent to discover the selectable item identifiers for a toolbar.