Instance Property

supermenu

The parent menu that contains the menu as a submenu.

Declaration

@property(assign) NSMenu *supermenu;

Discussion

This property contains a value of type NSMenu representing the the parent menu that contains the menu as a submenu. If the menu has no parent menu, then the value of this property is nil.

You should never invoke the setter method for this property directly. The setter method is called automatically when changes to the parent menu occur. You can, however, override the setter method for this property in order to take action when changes to the parent menu occur.

See Also

Managing Submenus

- setSubmenu:forItem:

Assigns a menu to be a submenu of the menu controlled by a given menu item.

- submenuAction:

The action method assigned to menu items that open submenus.

- attachedMenu

Returns the menu currently attached to the menu.

Deprecated
- isAttached

Returns a Boolean value that indicates whether the menu is currently attached to another menu.

Deprecated
- locationForSubmenu:

Returns the location in screen coordinates where the given submenu is displayed when opened as a submenu of the menu.

Deprecated
tornOff

Indicates whether the menu is offscreen or attached to another menu (or if it’s the main menu).

Deprecated