Re: Auxiliary Data with NSPersistentDocument
Re: Auxiliary Data with NSPersistentDocument
- Subject: Re: Auxiliary Data with NSPersistentDocument
- From: Rick Mann <email@hidden>
- Date: Sat, 19 Jul 2008 11:07:39 -0700
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 (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