• 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
CPPersistentDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Getting bounding rect of NSAttributedString
  • Next by Date: Re: using new APIs with old OS versions
  • Previous by thread: Re: Getting bounding rect of NSAttributedString
  • Next by thread: Filtering NSTableView core data
  • Index(es):
    • Date
    • Thread