Instance Method

intersectsSet:

Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set.

Declaration

- (BOOL)intersectsSet:(NSSet<ObjectType> *)otherSet;

Parameters

otherSet

The set with which to compare the receiving set.

Return Value

YES if at least one object in the receiving set is also present in otherSet, otherwise NO.

Discussion

Object equality is tested using isEqual:.

See Also

Comparing Sets

- isSubsetOfSet:

Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set.

- isEqualToSet:

Compares the receiving set to another set.

- valueForKey:

Return a set containing the results of invoking valueForKey: on each of the receiving set's members.

- setValue:forKey:

Invokes setValue:forKey: on each of the set’s members.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software