Instance Property

customizationIdentifier

A globally-unique string that makes a bar customizable and that is used during instantiation and user customization.

Declaration

var customizationIdentifier: NSTouchBar.CustomizationIdentifier? { get set }

Discussion

To make an NSTouchBar object eligible for user customization, assign it a globally-unique customizationIdentifier identifier. For the identifier string, use reverse-DNS style, such as “com.company-name.app-name.alphanumeric-ID”.

The system archives this property.

See Also

Configuring User Customization

var customizationAllowedItemIdentifiers: [NSTouchBarItem.Identifier]

A list of identifiers for items (NSTouchBarItem instances) you want shown in the bar’s customization UI; the system shows these items in addition to the bar’s default items.

var customizationRequiredItemIdentifiers: [NSTouchBarItem.Identifier]

An optional list of identifiers for items (NSTouchBarItem instances) you want to always appear in a bar and which the user cannot remove during customization.