Instance Property

itemIdentifiers

The read-only list of identifiers for the items (NSTouchBarItem instances) for the bar, as currently configured by the user.

Declaration

var itemIdentifiers: [NSTouchBarItem.Identifier] { get }

Discussion

If the user has not customized the bar, this property’s value is the same as that of the defaultItemIdentifiers property.

The system does not archive this property.

See Also

Observing Bar Status

var isVisible: Bool

Indicates whether the bar is eligible for display.

func item(forIdentifier: NSTouchBarItem.Identifier) -> NSTouchBarItem?

Returns an instantiated NSTouchBarItem instance that corresponds to a given identifier.