Re: Order an NSDictionary.
Re: Order an NSDictionary.
- Subject: Re: Order an NSDictionary.
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 9 Feb 2004 16:48:07 -0800
NSDictionaries are inherently unordered. You can get a sorted NSArray
of an NSDictionary's keys:
NSArray *sortedKeyArray = [yourDictionary
keysSortedByValueUsingSelector:@selector(compare:)];
Hope this helps.
// Daniel Currie
On 2004 Feb 09, at 15:23, Roberto Sobachi wrote:
I'm using NSArray and NSDictionary archive to add objects into an
NSTableView.
How can I sort NSDictionary?
Roberto Sobachi
developer
http://www.xidiar.com
_______________________________________________
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.
_______________________________________________
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.