indexOfItem(withObjectValue:)
Searches the combo box’s internal item list for the given object and returns the matching index number.
Declaration
func indexOfItem(withObjectValue object: Any) -> IntParameters
- object:
The object for which to return the index.
Return Value
The lowest index whose corresponding value is equal to anObject. Objects are considered equal if they have the same id or if isEqual: returns true. If none of the objects in the combo box’s internal item list is equal to anObject, indexOfItem(withObjectValue:) returns NSNotFound.
Discussion
This method logs a warning if usesDataSource is true.