Re: Sorting NSMutableArray by specified key?
Re: Sorting NSMutableArray by specified key?
- Subject: Re: Sorting NSMutableArray by specified key?
- From: Shawn Erickson <email@hidden>
- Date: Sun, 30 Jun 2002 11:18:18 -0700
On Sunday, June 30, 2002, at 10:53 AM, Aidas wrote:
Hi,
I would like to sort NSMUtableArray by specified key alphabeticaly. IS
it
possible somehow?
How about looking at the docs for NSMutableArray?
Simply implement a function or selector that does comparison that is
needed and call one of the following: "sortedUsingFunction:context:" or
"sortedUsingSelector:".
If you want to access items by key in a rapid fashion consider using an
NSMutableDictionary.
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.