Type Property

defaultMenu

Overridden by subclasses to return the default pop-up menu for instances of the receiving class.

Declaration

@property(class, readonly, strong) NSMenu *defaultMenu;

Discussion

The default implementation returns nil.

See Also

Managing Contextual Menus

- menuForEvent:

Overridden by subclasses to return a context-sensitive pop-up menu for a given mouse-down event.

- willOpenMenu:withEvent:

Called just before a contextual menu for a view is opened on screen.

- didCloseMenu:withEvent:

Called after a contextual menu that was displayed from the receiving view has been closed.