• 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: allKeys and allValues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allKeys and allValues


  • Subject: Re: allKeys and allValues
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 04 Oct 2010 15:43:23 -0600

Or do something like:

NSArray * allKeys = [dictionary allKeys];
NSArray * allValues = [dictionary objectsForKeys:allKeys notFoundMarker:[NSNull null]];

This also guarantees a 1-to-1 correspondance.

Dave

On Oct 4, 2010, at 3:40 PM, Greg Parker wrote:

> The documentation for CFDictionaryGetKeysAndValues() does promise to return parallel arrays, so you might be able to use that instead.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >allKeys and allValues (From: "gMail.com" <email@hidden>)
 >Re: allKeys and allValues (From: Ken Thomases <email@hidden>)
 >Re: allKeys and allValues (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: allKeys and allValues
  • Next by Date: Re: allKeys and allValues
  • Previous by thread: Re: allKeys and allValues
  • Next by thread: Re: allKeys and allValues
  • Index(es):
    • Date
    • Thread