Contents

index(of:)

Returns the index of the specified menu item.

Declaration

func index(of item: NSMenuItem) -> Int

Parameters

  • item:

    The menu item whose index you want.

Return Value

The index of the item or -1 if no such item was found.

See Also

Related Documentation

Accessing the items