On 01/08/2012, at 3:01 PM, Erik Stainsby wrote:

> The NSSortDescriptor documentation seems especially opaque to me tonight. 
> Surely there is a useful short description somewhere … ?  *whimper*


Sort descriptors are quite easy to use - what's the specific problem?


warning: typed into Mail:

NSSortDescriptor* desc = [NSSortDescriptor sortDescriptorWithKey:@"compare:" 
ascending:YES];

[myArray sortUsingDescriptors:[NSArray arrayWithObject:desc]];  //<-- myArray 
assumed to be an NSMutableArray



note that for this simple case, using a sort descriptor might not the most 
efficient solution.




--Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to