• 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
NSDictionary key/object correspondence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionary key/object correspondence


  • Subject: NSDictionary key/object correspondence
  • From: Alan Nilsson <email@hidden>
  • Date: Wed, 25 Sep 2002 15:09:51 -0700

In regards to the methods:

-(NSArray*) allKeys
-(NSArray*) allValues

Of the NSDictionary class, I see the docs say that the returned arrays will
be in no particular order, but if I call both methods will the returned
arrays have a one to one correspondence between them?

For example: if I have the key/value pair "key1" = "Value1" in a dictionary,
then if I call both allKeys and allValues, will the key value pair be at the
same index in their respective arrays?

Alan Nilsson
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSDictionary key/object correspondence
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: building & distributing frameworks
  • Next by Date: Re: Force Finder to redisplay changed custom icon
  • Previous by thread: Re: dragPromisedFilesOfTypes produces CFURLGetFSRef
  • Next by thread: Re: NSDictionary key/object correspondence
  • Index(es):
    • Date
    • Thread