Contents

contains(_:)

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

Declaration

func contains(_ anObject: ObjectType) -> Bool

Parameters

  • anObject:

    An object.

Return Value

true if anObject is present in the fetch result, otherwise false.

Discussion

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

See Also

Querying a Fetch Result