Instance Method
addMenuItems(for:to:) addMenuItemsForEvent:toMenu: addMenuItemsForEvent_toMenu_
Callback to allow to add something to the context menu
Declaration
optional func addMenuItems(
for theEvent: NSEvent,
to theMenu: NSMenu
)Declaration
- (void) addMenuItemsForEvent:(NSEvent *) theEvent
toMenu:(NSMenu *) theMenu;Declaration
addMenuItemsForEvent_toMenu_(
theEvent: NSEvent,
theMenu: NSMenu
)Parameters
theEventThe current event
theMenuThe context menu to add to