indexOfItem(withSubmenu:)
Returns the index of the menu item in the menu with the given submenu.
Declaration
func indexOfItem(withSubmenu submenu: NSMenu?) -> IntParameters
- 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.