Instance Method

makeObjectsPerformSelector:withObject:

Sends a message specified by a given selector to each object in the set.

Declaration

- (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(id)argument;

Parameters

aSelector

A selector that specifies the message to send to the set's members. The method must take a single argument of type id. The method should not, as a side effect, modify the set. The value must not be NULL.

argument

The object to pass as an argument to the method specified by aSelector.

Discussion

The message specified by aSelector is sent, with argument as the argument, once to each member of the set. This method raises an NSInvalidArgumentException if aSelector is NULL.

See Also

Accessing Set Members

allObjects

An array containing the set’s members, or an empty array if the set has no members.

- anyObject

Returns one of the objects in the set, or nil if the set contains no objects.

- containsObject:

Returns a Boolean value that indicates whether a given object is present in the set.

- filteredSetUsingPredicate:

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.

- makeObjectsPerformSelector:

Sends a message specified by a given selector to each object in the set.

- member:

Determines whether a given object is present in the set, and returns that object if it is.

- objectEnumerator

Returns an enumerator object that lets you access each object in the set.

- enumerateObjectsUsingBlock:

Executes a given block using each object in the set.

- enumerateObjectsWithOptions:usingBlock:

Executes a given block using each object in the set, using the specified enumeration options.

- objectsPassingTest:

Returns a set of object that pass a test in a given block.

- objectsWithOptions:passingTest:

Returns a set of object that pass a test in a given block, using the specified enumeration options.