NSMenu
An object that manages an app’s menus.
Declaration
class NSMenuTopics
Managing the Menu Bar
Creating an NSMenu Object
Adding and Removing Menu Items
insertItem(_:at:)insertItem(withTitle:action:keyEquivalent:at:)addItem(_:)addItem(withTitle:action:keyEquivalent:)removeItem(_:)removeItem(at:)itemChanged(_:)removeAllItems()
Finding Menu Items
Finding Indices of Menu Items
index(of:)indexOfItem(withTitle:)indexOfItem(withTag:)indexOfItem(withTarget:andAction:)indexOfItem(withRepresentedObject:)indexOfItem(withSubmenu:)
Managing Submenus
Enabling and Disabling Menu Items
Getting and Setting the Menu Font
Handling Keyboard Equivalents
Simulating Mouse Clicks
Managing the Title
Selecting Items
Configuring Menu Size
Getting Menu Properties
Managing Presentation Styles
Working with Palettes
Managing Menu Change Notifications
Displaying Contextual Menus
Displaying Context-Sensitive Help
popUpContextMenu(_:with:for:)popUpContextMenu(_:with:for:with:)helpRequested(with:)popUp(positioning:at:in:)
Managing Display of the State Column
Controlling Allocation Zones
Handling Highlighting
Managing the User Interface
Managing the Delegate
Handling Tracking
Constants
Notifications
didAddItemNotificationdidChangeItemNotificationdidBeginTrackingNotificationdidEndTrackingNotificationdidRemoveItemNotificationdidSendActionNotificationwillSendActionNotification