Einhugur macOS Bridge plugin.

NSTouchBar.Constructor Constructor

Constructs NSTouchBar, taking in optional delegate to construct Touch-Bar items.

Constructor(
   itemCreator as MakeItemForIdentifierDelegate)

Parameters

itemCreator
This parameter can be set to nil. If passing in delegate here then the delegate will act as live source for adding items to the Touch-.Bar

Remarks

Note that you only construct a Touch-Bar in callback delegate from the RegisterForApplication or RegisterForWindow shared methods.

Exception to this is when you are creating Touch Bar to add to the expanded state of a NSPopoverTouchBarItem.

See Also

NSTouchBar Class