• 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: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key


  • Subject: Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
  • From: Joar Wingfors <email@hidden>
  • Date: Sat, 12 Dec 2009 22:47:55 -0800

On 12 dec 2009, at 22.04, Jerry Krinock wrote:

>> And although NSDictionary and CFDictionary objects allow their keys to be objects of any type, if the keys are not string objects, the collections are not property-list objects.
>
> Actually, there's a third bug, since that statement is incorrect.  Dictionary keys can be any type *that conforms to NSCopying*.


That's strictly speaking only true for NSDictionary, where you can't configure how keys are added to the dictionary. CFDictionary allows full control over that, and doesn't even require for the keys to be objects.

j o a r


_______________________________________________

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

  • Follow-Ups:
    • Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
      • From: Jerry Krinock <email@hidden>
References: 
 >NSUserDefaults Croaks on Dictionary Containing NSNumber as Key (From: Jerry Krinock <email@hidden>)
 >Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key (From: Chris Parker <email@hidden>)
 >Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
  • Next by Date: Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
  • Previous by thread: Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
  • Next by thread: Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
  • Index(es):
    • Date
    • Thread