Re: quick and dirty NSData implosion
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