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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]