Instance Property

allowsUserCustomization

A Boolean value that indicates whether users are allowed to modify the toolbar.

Declaration

@property BOOL allowsUserCustomization;

Discussion

YES if users are allowed to modify the toolbar; otherwise, NO. If the value is NO, then the Customize Toolbar… menu item is disabled and other modification is disabled. This attribute does not affect the user’s ability to show or hide the toolbar.

This value can be changed at any time. For instance, you may not want users to be able to customize the toolbar while some event is being processed. If you set the toolbar to allow customization, be sure to also set the toolbar to autosave its configuration so the user’s changes persist.

The default is NO.

See Also

Toolbar Attributes

identifier

The receiver’s identifier.

displayMode

The toolbar’s display mode.

showsBaselineSeparator

A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents.

allowsExtensionItems

A Boolean value that indicates whether the toolbar can add items for Action extensions.

items

An array containing the toolbar’s current items, in order.

visibleItems

An array containing the toolbar’s currently visible items.

sizeMode

The toolbar’s size mode.