popUpContextMenu(_:with:for:)
Displays a contextual menu over a view for an event.
Declaration
class func popUpContextMenu(_ menu: NSMenu, with event: NSEvent, for view: NSView)Parameters
- menu:
The menu object to use for the contextual menu.
- event:
An Nsevent object representing the event.
- view:
The view object over which to display the contextual menu.