Instance Method

makeObjectsPerformSelector:withObject:

Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object.

Declaration

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

Parameters

aSelector

A selector that identifies the message to send to the objects in the array. The method must take a single argument of type id, and must not have the side effect of modifying the receiving array.

anObject

The object to send as the argument to each invocation of the aSelector method.

Discussion

This method raises an NSInvalidArgumentException if aSelector is NULL.

See Also

Sending Messages to Elements

- makeObjectsPerformSelector:

Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object.

- enumerateObjectsUsingBlock:

Executes a given block using each object in the array, starting with the first object and continuing through the array to the last object.

- enumerateObjectsWithOptions:usingBlock:

Executes a given block using each object in the array with the specified options.

- enumerateObjectsAtIndexes:options:usingBlock:

Executes a given block using the objects in the array at the specified indexes.

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