Protocol

NSToolbarDelegate

A set of optional methods implemented by toolbar delegates to configure the toolbar and respond to changes.

Declaration

@protocol NSToolbarDelegate

Topics

Configuring a Toolbar

- toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:

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

- toolbarAllowedItemIdentifiers:

Sent to discover the allowed item identifiers for a toolbar.

- toolbarDefaultItemIdentifiers:

Sent to discover the default item identifiers for a toolbar.

- toolbarSelectableItemIdentifiers:

Sent to discover the selectable item identifiers for a toolbar.

Responding to Additions and Deletions in the Toolbar

- toolbarWillAddItem:

Sent just before a new item is added to a toolbar.

- toolbarDidRemoveItem:

Sent just after an item has been removed from a toolbar.

Relationships

Inherits From

Conforming Types

See Also

Configuring the Toolbar Contents

delegate

The toolbar’s delegate.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software