Re: Invalidated managed objects
Re: Invalidated managed objects
- Subject: Re: Invalidated managed objects
- From: Quincey Morris <email@hidden>
- Date: Sat, 3 Apr 2010 15:28:37 -0700
On Apr 3, 2010, at 12:05, Ben Trumbull wrote:
> The canonical solution is to tell your controller objects like NSArrayController to refetch from the new document. It sounds like you're fighting the document based Save As behavior. It's "close the existing document, save the current state to a new document, open new document"
Do you mean "fighting the NSPersistentDocument Save As behavior"?
My understanding is that "close the existing document, save the current state to a new document, open new document" is *not* the semantics of plain NSDocument Save As -- the whole point being that transient state is preserved across a Save As. No NSDocument-based (non-NSPersistentDocument-based) application is required to discard all of its in-memory object references after doing a Save As, as far as I'm aware.
_______________________________________________
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