FROM : Mike Burns
DATE : Wed Mar 26 23:47:32 2008
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
DATE : Wed Mar 26 23:47:32 2008
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
| Related mails | Author | Date |
|---|---|---|
| Mike Burns | Mar 26, 23:47 | |
| Ben Trumbull | Mar 31, 01:52 |






Cocoa mail archive

