Skip navigation.
 
mlRe: NSPanel should not close on command-W
FROM : Georg Seifert
DATE : Sat Jun 21 20:25:18 2008

I wrote this earlier but send it directly to Marco.
pleas excuse my carelessness.

>> I just added a panel to my program. I do not want that the panel 
>> closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It 
>> does not close if there is a document window. But if the last one 
>> is closed (with keyboard: command-W) also the panel closes.

>
> I'm taking a stab in the dark here, but could it be that your panel 
> is in the same nib file as your document window? If it should be a 
> document-independent inspector-kind panel you probably should put it 
> in its own nib file.


I think I was unclear: I did not ment, that the panel closes with the 
last window, but reacts to command-w if the last window is closed.

And of course, the panel is in a different nib than the document window.

Georg

Related mailsAuthorDate
mlNSPanel should not close on command-W Georg Seifert Jun 21, 15:02
mlRe: NSPanel should not close on command-W Keary Suska Jun 21, 18:55
mlRe: NSPanel should not close on command-W Georg Seifert Jun 21, 19:10
mlRe: NSPanel should not close on command-W Marco Masser Jun 21, 19:10
mlRe: NSPanel should not close on command-W Keary Suska Jun 21, 19:40
mlRe: NSPanel should not close on command-W Georg Seifert Jun 21, 20:00
mlRe: NSPanel should not close on command-W Jason Stephenson Jun 21, 20:19
mlRe: NSPanel should not close on command-W Georg Seifert Jun 21, 20:25
mlRe: NSPanel should not close on command-W Andrew Merenbach Jun 21, 20:47
mlRe: NSPanel should not close on command-W Georg Seifert Jun 23, 09:35
mlRe: NSPanel should not close on command-W Mike Abdullah Jun 23, 16:17
mlRe: NSPanel should not close on command-W Jim Correia Jun 23, 17:18
mlRe: NSPanel should not close on command-W Andy Lee Jun 23, 17:31
mlRe: NSPanel should not close on command-W Georg Seifert Jun 23, 18:01
mlRe: NSPanel should not close on command-W Quincey Morris Jun 23, 20:06