Adam Fedor wrote:
I don't really see where it says this, unless it's somewhere in the
NSDocument documentation. NSApplication documentation doesn't mention
anything about documents.

Exactly there in the class description for NSDocument.


The second part is even worse, here closing the window and closing the document are mixed. This are two almost independend operations. A document may have multiple windows and may only close when the last one gets closed or sometimes not even then. Again I understand why this patch was intendend, but it tries to solve the problem the wrong way.


I looked at this again and found the real reason this doesn't work. I
put this patch in instead:

Wonderful that you found the true reason for the problem. One last question: Don't we need similar code in [NSWindowController setWindow:]? In your last change in that area (2002-11-02) you also changed both places.




_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to