|
From: | Fred Kiefer |
Subject: | Re: NSDocument close & NSApplication targetForAction |
Date: | Sun, 21 Sep 2003 22:20:16 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |