Instance Method

containsObject:

Returns whether the specified object is present in the fetch result.

Declaration

- (BOOL)containsObject:(ObjectType)anObject;

Parameters

anObject

An object.

Return Value

YES if anObject is present in the fetch result, otherwise NO.

Discussion

This method determines whether anObject is present in the fetch result by sending an isEqual: message to each of the fetch result’s objects (and passing anObject as the parameter to each isEqual: message).

See Also

Querying a Fetch Result

count

The number of objects in the fetch result.

- countOfAssetsWithMediaType:

Returns the number of assets in the fetch result of a specified type.

firstObject

The first object in the fetch result.

lastObject

The last object in the fetch result.

- objectAtIndex:

Returns the object located at the specified index.

- objectAtIndexedSubscript:

Returns the object located at the specified index.

- objectsAtIndexes:

Returns an array containing the objects in the fetch result at the indexes in the specified index set.