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