Instance Property

displayMode

The toolbar’s display mode.

Declaration

var displayMode: NSToolbar.DisplayMode { get set }

Discussion

For a list of possible display modes, see NSToolbar.DisplayMode.

See Also

Toolbar Attributes

var identifier: NSToolbar.Identifier

The receiver’s identifier.

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 allowsExtensionItems: Bool

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

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.