• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Looking for an Ordered Dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for an Ordered Dictionary


  • Subject: Re: Looking for an Ordered Dictionary
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 9 Apr 2002 02:02:40 -0400

wouldn't this just be an NSMutableArray of NSDictionary items?

Or do you need to be able to access by key as well?

if so, you're custom PWOrderedDictionary could be made up of an Array and a dictionary and keep the keys in the array in order


On Tuesday, April 9, 2002, at 01:51 AM, Philip Weaver 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?
_______________________________________________
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.

References: 
 >Looking for an Ordered Dictionary (From: Philip Weaver <email@hidden>)

  • Prev by Date: Looking for an Ordered Dictionary
  • Next by Date: Re: Looking for an Ordered Dictionary
  • Previous by thread: Looking for an Ordered Dictionary
  • Next by thread: Re: Looking for an Ordered Dictionary
  • Index(es):
    • Date
    • Thread