Re: Understanding user defaults
Re: Understanding user defaults
- Subject: Re: Understanding user defaults
- From: Rick Mann <email@hidden>
- Date: Mon, 18 Mar 2013 17:14:21 -0700
On Mar 18, 2013, at 16:46 , Jens Alfke <email@hidden> wrote:
> It wouldn’t be human-readable. NSArchiver doesn’t produce readable output. Even if you made a version whose output was a tree of directories, it would still be pretty unreadable due to all the metadata in it. (After all, XML is “human-readable”, but have you ever looked at the XML output of NSArchiver? It’s really hairy.)
NSArchiver calls look like -setValue:forKey:, so it seems reasonable that the protocol could be usurped to write out fairly clean user defaults plists.
> User defaults are for small prefs, things like strings or numbers or maybe colors. I agree with Kyle that it’s not appropriate to store large things in them. Put a file into your Application Support directory for that, instead.
I'm not storing large things.
--
Rick
_______________________________________________
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