On Jul 18, 2008, at 07:59:00, Bill Garrison wrote:

<http://www.cocoadev.com/index.pl?CPPersistentDefaults>

This implements the "hackish" approach that you mentioned. You end up adding a single instance of the CPPersistentDefaults entity to your document that holds all of your miscellaneous bits of info. The API mimics NSUserDefaults, just scoped to your persistent document.


Something just occurred to me.

I would like to save this meta data all the time, but I don't want it to affect the dirty state of the document or be included in undo. I see in the CPPersistentDefaults docs how they deal with undo, and that's fine.

But if my user, say, resizes the window, then chooses not to save their changes, how can my meta data get persisted?
--
Rick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]

Reply via email to