Displays a contextual menu over a view for an event using a specified font.
Original signature is '+ (void)popUpContextMenu:(NSMenu *)menu withEvent:(NSEvent *)event forView:(NSView *)view withFont:(NSFont *)font'
Available in Mac OS X v10.3 and later.
Declaration Syntax
Parameters
- menu (NSMenu)
- The menu object to use for the contextual menu.
- event (NSEvent)
- An NSEvent object representing the event.
- view (NSView)
- The view object over which to display the contextual menu.
- font (NSFont)
- An NSFont object representing the font for the contextual menu. If you pass in nil for the font, the method uses the default font for menu.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)