Returns the lowest index whose corresponding array value is equal to a given object.
Original signature is '- (NSUInteger)indexOfObject:(id)anObject'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual NSUInteger IndexOfObject( Id anObject )
Public Overridable Function IndexOfObject ( _ anObject As Id _ ) As NSUInteger
public: virtual NSUInteger IndexOfObject( Id^ anObject )

- anObject (Id)
- An object.

The lowest index whose corresponding array value is equal to anObject. If none of the objects in the array is equal to anObject, returns NSNotFound.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)