It depends. If you have, say, an array of objects, and these objects have a URL
property (for example), then you can do:
NSArray * urls = [myArray valueForKey:@"URL"];
Likewise, if you can trigger the behavior of the objects in question via a single message that takes 0 or 1 parameters, you can do:
[myArray makeObjectsPerformSelector:@selector(doFoo)];
//or:
[myArray makeObjectsPerformSelector:@selector(doFooWithBar:) withObject:aBar];
For anything beyond that, you'll have to iterate over the objects yourself. You can use a for()
loop, a for(in)
loop, or something like -enumerateObjectsUsingBlock:
, etc.