Instance Method
addMenuItems(for:to:) addMenuItemsForEvent:toMenu: addMenuItemsForEvent_toMenu_
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 Event that initiated the context menu. That can be used to determine mouse position.
theMenuThe NSMenu where you can add your menu items.
Discussion
Will be called for active reporter plugins. This allows to have some settings.