Is there any convenient way to take an array / set of objects and create a new array / set containing some property of each element in the first array?
For example, an array contains Car objects. I need an array of licensePlates where every car has an NSObject car.licensePlate.
Currently, I just iterate over the first array, adding objects to my mutable result array, but wondered if there was an instance creation method for it (documents checked for NSArray).
objective-c nsarray nsset
Ben Packard Mar 27 '12 at 13:48 2012-03-27 13:48
source share