Instance Property


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


@property(copy) NSTouchBarItemIdentifier escapeKeyReplacementItemIdentifier;


You can either include this identifier in the templateItems array, or provide it from the bar’s delegate.

The system does not archive this property.

See Also

Providing Bar Items


The delegate for the bar, used to provide the items for the touch bar.


The primary source of NSTouchBarItem instances used by the bar to fill its private items array, unless you provide items using a delegate.


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


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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software