Dockyard > Objective-C Protocols > CocoaDevUsersAdditions
See also
Protocol Description
Some handy addenda to NSArray, everybody's favorite Cocoa OrderedCollection. Some are for symmetry, some are for kicks, all are for free. Enjoy. (docs taken from CocoaDev)
Methods
Sending messages to elements
- makeObjectsPerformSelector:withRespectiveObjectsFrom:
- resultsOfMakeObjectsPerformSelector:
- resultsOfMakeObjectsPerformSelector:withObject:
- resultsOfMakeObjectsPerformSelector:withRespectiveObjectsFrom:
Method Detail
makeObjectsPerformSelector:withRespectiveObjectsFrom:
- (void)makeObjectsPerformSelector:(SEL)aSelector withRespectiveObjectsFrom:(id)collection
Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object. The message is sent each time with progressive objects from collection as an argument, so the aSelector method must take a single argument of type id. The aSelector method shouldn't, as a side effect, modify the receiving array. This method raises an NSInvalidArgumentException if aSelector is NULL (modified from ADC docs). collection is any object that responds to objectEnumerator:, and must have the same number of objects as this array.
See also: makeObjectsPerformSelector: (NSArray), resultsOfMakeObjectsPerformSelector:, makeObjectsPerformSelector:withObject: (NSArray), resultsOfMakeObjectsPerformSelector:withObject:, resultsOfMakeObjectsPerformSelector:withRespectiveObjectsFrom:
resultsOfMakeObjectsPerformSelector:
- (NSArray *)resultsOfMakeObjectsPerformSelector:(SEL)aSelector
Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object. The aSelector method must not take any arguments. It shouldn't have the side effect of modifying the receiving array. This method raises an NSInvalidArgumentException if aSelector is NULL (docs taken from ADC). The resulting NSArray contains the results of the method calls, using NSNull in place of nil. It has a one-to-one correspondence with the items in this array.
See also: makeObjectsPerformSelector: (NSArray), makeObjectsPerformSelector:withObject: (NSArray), resultsOfMakeObjectsPerformSelector:withObject:, makeObjectsPerformSelector:withRespectiveObjectsFrom:, resultsOfMakeObjectsPerformSelector:withRespectiveObjectsFrom:
resultsOfMakeObjectsPerformSelector:withObject:
- (NSArray *)resultsOfMakeObjectsPerformSelector:(SEL)aSelector withObject:(id)anObject
Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object. The message is sent each time with anObject as an argument, so the aSelector method must take a single argument of type id. The aSelector method shouldn't, as a side effect, modify the receiving array. This method raises an NSInvalidArgumentException if aSelector is NULL (docs taken from ADC). The resulting NSArray contains the results of the method calls, using NSNull in place of nil. It has a one-to-one correspondence with the items in this array.
See also: makeObjectsPerformSelector: (NSArray), resultsOfMakeObjectsPerformSelector:, makeObjectsPerformSelector:withObject: (NSArray), makeObjectsPerformSelector:withRespectiveObjectsFrom:, resultsOfMakeObjectsPerformSelector:withRespectiveObjectsFrom:
resultsOfMakeObjectsPerformSelector:withRespectiveObjectsFrom:
- (NSArray *)resultsOfMakeObjectsPerformSelector:(SEL)aSelector withRespectiveObjectsFrom:(id)collection
Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object. The message is sent each time with progressive objects from collection as an argument, so the aSelector method must take a single argument of type id. The aSelector method shouldn't, as a side effect, modify the receiving array. This method raises an NSInvalidArgumentException if aSelector is NULL (modified from ADC docs). collection is any object that responds to objectEnumerator:, and must have the same number of objects as this array. The resulting NSArray contains the results of the method calls, using NSNull in place of nil. It has a one-to-one correspondence with the items in this array.
See also: makeObjectsPerformSelector: (NSArray), resultsOfMakeObjectsPerformSelector:, makeObjectsPerformSelector:withObject: (NSArray), resultsOfMakeObjectsPerformSelector:withObject:, resultsOfMakeObjectsPerformSelector:withRespectiveObjectsFrom:
This page was generated with DocYouMeant, a program created by Belkadan Software