Contents

indexOfItem(withRepresentedObject:)

Returns the index of the menu item that holds the specified represented object.

Declaration

func indexOfItem(withRepresentedObject obj: Any?) -> Int

Parameters

  • obj:

    The represented object associated with a menu item.

Return Value

The index of the menu item that owns the specified object, or -1 if no such menu item was found.

See Also

Related Documentation

Accessing the items