• 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: quick and dirty NSData implosion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quick and dirty NSData implosion


  • Subject: Re: quick and dirty NSData implosion
  • From: Alexander Spohr <email@hidden>
  • Date: Fri, 8 May 2009 15:39:35 +0200


Am 08.05.2009 um 15:25 schrieb Jon:

but NSUserDefaults only takes immutable things.

Why do you think that? Did you try?

From the documentation:
"value
The object to store in the defaults database. A default’s value can be only property list objects: NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary."


An NSMutableDictionary is a subclass of NSDictionary. Why should it be illegal to throw it in there? It is still an NSDictionary.
The important part is that it must be a property list object.


	atze


_______________________________________________

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: quick and dirty NSData implosion
      • From: jon <email@hidden>
References: 
 >quick and dirty NSData implosion (From: Jon <email@hidden>)

  • Prev by Date: quick and dirty NSData implosion
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: quick and dirty NSData implosion
  • Next by thread: Re: quick and dirty NSData implosion
  • Index(es):
    • Date
    • Thread