• 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: Trouble creating dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble creating dictionary


  • Subject: Re: Trouble creating dictionary
  • From: Graham Cox <email@hidden>
  • Date: Wed, 28 Sep 2011 11:28:37 +1000

On 28/09/2011, at 11:21 AM, Dale Satterfield wrote:

>  tzDict = [NSDictionary dictionaryWithObjects:tzKeys forKeys:tzValues];


You've transposed the values and the keys here, and since the values are not unique, you end up with only 30 unique "keys" (which are really the values).

--Graham


_______________________________________________

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: 
 >Trouble creating dictionary (From: Dale Satterfield <email@hidden>)

  • Prev by Date: Re: Trouble creating dictionary
  • Next by Date: Re: controller question
  • Previous by thread: Re: Trouble creating dictionary
  • Next by thread: Validating form input w/o core data
  • Index(es):
    • Date
    • Thread