Instance Property

templateItems

The primary source of items that the Touch Bar uses to fill its private items array, unless you provide items using a delegate.

Declaration

var templateItems: Set<NSTouchBarItem> { get set }

Discussion

When a bar needs to fill its private items array with items (NSTouchBarItem instances), it employs a variety of potential sources. The first place it looks is this property. For more information, see Using NSTouchBarItem Objects.

The system archives this property.

See Also

Providing Bar Items

var delegate: NSTouchBarDelegate?

The delegate that provides items to the Touch Bar.

var defaultItemIdentifiers: [NSTouchBarItem.Identifier]

A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it.

var principalItemIdentifier: NSTouchBarItem.Identifier?

The identifier of an item you want the system to center in the Touch Bar.

var escapeKeyReplacementItemIdentifier: NSTouchBarItem.Identifier?

The identifier of an item that replaces the system-provided button in the Touch Bar.