Re: Looking for an Ordered Dictionary
Re: Looking for an Ordered Dictionary
- Subject: Re: Looking for an Ordered Dictionary
- From: Phillip Morelock <email@hidden>
- Date: Mon, 08 Apr 2002 23:09:11 -0700
hi -- i have a free data structures framework at:
http://www.phillipmorelock.com/examples/cocoadata
The next release (due later tonight ;) will include a red-black tree and a
plain vanilla binary search tree. Perhaps this will suit you.
let me know if you need any help -- i think my search tree will help you
here.
cheers
fillup
P.S. you can also use an NSSet or NSArray to hold the keys to your
NSDictionary in whatever order you want. Apple often advises this.
On 4/8/02 10:51 PM, "Philip Weaver" <email@hidden> wrote:
>
I'm seeking some technique to hold a set of key/value pairs but
>
keep them IN ORDER. I would use NSDictionary but the keys are
>
not returned/stored in the order in which they are added - it is
>
an unordered collection.
>
>
Do I need to roll my own "OrderedDictionary" or are there other
>
NSFoundation classes that would suit my needs. Are there third
>
party classes or source code that I should refer to?
>
>
Thanks,
>
Philip Weaver
>
_______________________________________________
>
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.