Instance Property

allowsExtensionItems

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

Declaration

var allowsExtensionItems: Bool { get set }

Discussion

When true, the toolbar can dynamically create toolbar items for Action extensions in the toolbar configuration panel. To be included, an extension needs to set the NSExtensionServiceAllowsToolbarItem key to true in its Info.plist. For more informaiton, see App Extension Keys in Information Property List Key Reference.

The default value is NO.

See Also

Toolbar Attributes

var identifier: NSToolbar.Identifier

The receiver’s identifier.

var displayMode: NSToolbar.DisplayMode

The toolbar’s display mode.

var showsBaselineSeparator: Bool

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

var allowsUserCustomization: Bool

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

var items: [NSToolbarItem]

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

var visibleItems: [NSToolbarItem]?

An array containing the toolbar’s currently visible items.

var sizeMode: NSToolbar.SizeMode

The toolbar’s size mode.