Instance Property


The app’s main menu bar.


var mainMenu: NSMenu? { get set }


Use this property to assign a new menu bar for your app or to access the current menu bar.

See Also

Accessing the Main Menu

var isAutomaticCustomizeTouchBarMenuItemEnabled: Bool

A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar.