Protocol

NSTouchBarDelegate

A protocol that allows you to provide the items for a bar dynamically.

Declaration

@protocol NSTouchBarDelegate

Overview

Use a bar delegate, according to the needs of your app, to dynamically create items (NSTouchBarItem instances). For more information, see Using NSTouchBarItem Objects.

Topics

Providing Bar Items

- touchBar:makeItemForIdentifier:

Asks the delegate object for the bar item for the specified bar and item identifier.

Relationships

Inherits From

See Also

First Steps

NSTouchBar

An object that provides dynamic contextual controls in the Touch Bar of supported models of MacBook Pro.

NSTouchBarProvider

A protocol that an object adopts to create a bar object in your app.

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