Sends a message specified by a given selector to each object in the set.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A selector that specifies the message to send to the members of the set. The method must not take any arguments. It should not have the side effect of modifying the set. This value must not be
The message specified by
aSelector is sent once to each member of the set. This method raises an
Accessing Set Members
An array containing the set’s members, or an empty array if the set has no members.
Returns one of the objects in the set, or
nil if the set contains no objects.
Returns a Boolean value that indicates whether a given object is present in the set.
Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true.
Determines whether a given object is present in the set, and returns that object if it is.
Returns an enumerator object that lets you access each object in the set.