Instance Method

locationForSubmenu:

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

Declaration

- (NSPoint)locationForSubmenu:(NSMenu *)submenu;

Parameters

aSubmenu

A menu object that is a submenu of the menu.

Return Value

An NSPoint structure describing the location or (0.0, 0.0) if the submenu does not exist in the menu.

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
supermenu

The parent menu that contains the menu as a submenu.

tornOff

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

Deprecated