Instance Property

templateItems

The primary source of NSTouchBarItem instances used by the bar 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 for the bar, used to provide the items for the touch bar.

var defaultItemIdentifiers: [NSTouchBarItem.Identifier]

A required list of identifiers for the items (NSTouchBarItem instances) you want to appear when a bar is first instantiated.

var principalItemIdentifier: NSTouchBarItem.Identifier?

The item identifier for the NSTouchBarItem instance you want the system to center in the Touch Bar.

var escapeKeyReplacementItemIdentifier: NSTouchBarItem.Identifier?

The item identifier for the NSTouchBarItem instance that you are using as a replacement for the system escape button.