NSPersistentDocument Revert Question
NSPersistentDocument Revert Question
- Subject: NSPersistentDocument Revert Question
- From: Mike Burns <email@hidden>
- Date: Wed, 26 Mar 2008 18:47:32 -0400
Hello list,
I'm having trouble tracking down what I would think to be a simple
answer for a simple question:
In my NSPersistentDocument based application (10.4), selecting
'revert' from the file menu creates new window controllers (I assume
it is just re-opening the original document), but it doesn't
deallocate the old window controllers from the document that was
edited pre-revert. This creates a ton of "'entityForName' could not
locate an NSManagedObjectModel" error's due to the fact that the
document these window controllers were retained in no longer exists.
Am I doing something strange or do I need to manually deallocate my
window controllers in my NSPersitentDocuments' revert override?
Thanks,
Mike
_______________________________________________
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