discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindowController setDocument, setWindow


From: Stefan Urbanek
Subject: NSWindowController setDocument, setWindow
Date: Sun, 27 Oct 2002 10:36:40 +0100

Hi,

In NSWindowController -setDocument and setWindow there is

   [_window setReleasedWhenClosed: YES];

when document is not nil. I think, that it should not be there. If I have an 
document with more than one window and I close some other, not main document 
window, I cannot open it again, because it gets released. There is no metion 
about that behaviour in the Cocoa docs, so I was surprised. Moreover, it 
overrides the releasedWhenClosed flag that was set in a nib file. I do not 
think that current behavior is correct.

Stefan

--
http://urbanek.host.sk

First they ignore you, then they laugh at you, then they fight you, then you 
win.
- Mahatma Gandhi






reply via email to

[Prev in Thread] Current Thread [Next in Thread]