Contents

indexOfItem(withSubmenu:)

Returns the index of the menu item in the menu with the given submenu.

Declaration

func indexOfItem(withSubmenu submenu: NSMenu?) -> Int

Parameters

  • submenu:

    A menu object that is a menu item of the menu (that is, a submenu).

Return Value

The integer index of the menu item or, if no such menu item is in the menu, –1.

See Also

Related Documentation

Finding Indices of Menu Items