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


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


Providing Bar Items

func touchBar(NSTouchBar, makeItemForIdentifier: NSTouchBarItem.Identifier)

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


Inherits From

Adopted By

See Also

First Steps

class NSTouchBar

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

protocol NSTouchBarProvider

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