Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auxiliary Data with NSPersistentDocument




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Auxiliary Data with NSPersistentDocument (From: Rick Mann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.