• 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
Re: Auxiliary Data with NSPersistentDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: avoid AlertPanel in opening a document
  • Next by Date: Re: NSMutableDictionary autorelease chrashes application
  • Previous by thread: Auxiliary Data with NSPersistentDocument
  • Next by thread: Array help!
  • Index(es):
    • Date
    • Thread