CPPersistentDefaults
CPPersistentDefaults
- Subject: CPPersistentDefaults
- From: Adam Knight <email@hidden>
- Date: Mon, 24 Jul 2006 23:36:14 -0500
Just a quick announcement of a class that might prove helpful. I
wanted document-based preferences for my Core Data application but
wanted an easy migration from NSUserDefaults as well so I wired up
all the various methods like boolForKey: and such into a class that
actually stores all the information in a Preference entity in your
persistent store. All the methods work the same as this was designed
to be a drop-in replacement for NSUserDefaults.
http://www.codepoetry.net/2006/07/24/cppersistentdefaults
I use it for things like the window frame, split position and
orientation, table column locations, etc. in Notae. Thought others
might find it useful as well.
I'm going to work on some methods for missing keys and all that as
well so that one could use this in IB and bindings, too. I just need
to research that part... (unless someone wants to donate code :) ).
--
Adam Knight
If you're not going to stop and appreciate the scenery, you're not
going to
enjoy Myst. The same thing applies on the Mac as well. -- Rand Miller
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden