Instance Property

mainMenu

The app’s main menu bar.

Declaration

var mainMenu: NSMenu? { get set }

Discussion

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.