Contents

setSubmenu(_:for:)

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

Declaration

func setSubmenu(_ menu: NSMenu?, for item: NSMenuItem)

Parameters

  • menu:

    A menu object that is to be a submenu of the menu.

  • item:

    A menu item (that is, an object conforming to the NSMenuItem protocol) that controls aMenu. The method sets the action of anItem to Submenuaction(_:).

See Also

Managing Submenus