Collection Operators allow actions to be performed on the items of a collection using key path notation and an action operator. If you know SQL, I like to think of these as “group by” operations.
What’s even cooler about these Collection Operators is that you have the ability to sort collections (NSArray, NSSet, NSDictionary) using them.
But be warned, you may not use collection operators for the key paths of your sort descriptors with fetch requests (NSFetchRequest). At least not yet in iOS7. You should fetch then apply the sort descriptor.
You must be logged in to post a comment.
Receive notifications of new posts by email.
2015 © Objective Li Labs LLC