Instance Property

delegate

The delegate of the menu.

Declaration

weak var delegate: NSMenuDelegate? { get set }

Discussion

This property indicates the delegate of the menu.

You can use the delegate to populate a menu just before it is drawn and to check for key equivalents without creating a menu item.

See Also