indexOfItem(withTag:)
Returns the index of the menu item with the specified tag.
Declaration
func indexOfItem(withTag tag: Int) -> IntParameters
- tag:
The tag of the menu item you want.
Return Value
The index of the item or -1 if no item with the specified tag was found.
Discussion
This method invokes the method of the same name of its NSPopUpButtonCell object.