Phantom NSDocuments?
Phantom NSDocuments?
- Subject: Phantom NSDocuments?
- From: Trevor Strohman <email@hidden>
- Date: Thu, 27 Feb 2003 15:42:44 -0800
My current application project uses the NSDocument architecture. I
have it up and running and it works well, except for this: the
documents never seem to be deallocated. If I close a document window,
the document will appear to go away, but the document instance stays
around.
I didn't notice this behavior until I added calls to updateChangeCount:
to indicate document dirtiness. Now, if I close a document that's
dirty, a sheet appears (as it should), asking if I wish to save the
document. If I decide not to save the document, the window goes away,
but upon quitting the application the document pops back up and asks me
to save again.
I have trapped the
canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: call and
verified that the document is telling the selector that it's okay to
close.
Any ideas? Thanks!
Trevor Strohman
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.