Instance Method

indexPathForObject:

Returns the index path of a given object.

Declaration

- (NSIndexPath *)indexPathForObject:(ResultType)object;

Parameters

object

An object in the receiver’s fetch results.

Return Value

The index path of object in the receiver’s fetch results, or nil if object could not be found.

Discussion

In versions of iOS before 3.2, this method raises an exception if object is not contained in the receiver’s fetch results.

See Also

Accessing Results

fetchedObjects

The results of the fetch.

- objectAtIndexPath:

Returns the object at the given index path in the fetch results.