I have a fetch that returns an array with dictionary in it of an attribute of a core data object.
Here is my previous question: Create Array From Attribute of NSObject F
The Fast Enumeration method:
NSMutableArray *data = [[NSMutableArray alloc] initWithCapacity:array.count];
for (NSDictionary *d in objects) {
[data addObject:[d objectForKey:@"timeStamp"]];
}
The Block enumerator method:
NSMutableArray *data = [[NSMutableArray alloc] initWithCapacity:array.count];
[objects enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
[data addObject:[obj objectForKey:@"timeStamp"]];
}];
Either way, 'data' contains just an array of NSDate instances.