Re: NSPanel should not close on command-W

2008-06-23 Thread Quincey Morris
On Jun 23, 2008, at 09:01, Georg Seifert wrote: I do a graphic program and most users are used to the behavior of adobe apps. There palettes have a close button but do not react on command-w. For me it is more logical that all windows with a "big" title bar react on keyboard close comman

Re: NSPanel should not close on command-W

2008-06-23 Thread Georg Seifert
But it is still unclear to me *why* you want to do this. If your panel has a close box, and it is the window with keyboard focus, many users are going to expect Command-W to close that window. Going out of your want to disable that functionality is likely to frustrate these users. An exampl

Re: NSPanel should not close on command-W

2008-06-23 Thread Andy Lee
On Jun 23, 2008, at 11:18 AM, Jim Correia wrote: But it is still unclear to me *why* you want to do this. If your panel has a close box, and it is the window with keyboard focus, many users are going to expect Command-W to close that window. Going out of your want to disable that functionali

Re: NSPanel should not close on command-W

2008-06-23 Thread Jim Correia
On Jun 23, 2008, at 3:35 AM, Georg Seifert wrote: The way I would like it is that is does not respond to "command-w" at all. I think, I will try to implement my my own close button and disable close in IB. Or has anyone a better idea? A previous response in this thread told you how to do th

Re: NSPanel should not close on command-W

2008-06-23 Thread Mike Abdullah
On 23 Jun 2008, at 08:35, Georg Seifert wrote: Now I found out how panels works in Apple apps: (I did not use them often enough to be used to this behavior. I always had the panel from Adobe apps in mind ) The panels have the "setBecomesKeyOnlyIfNeeded:YES" set and thats it. Than they ge

Re: NSPanel should not close on command-W

2008-06-23 Thread Georg Seifert
Now I found out how panels works in Apple apps: (I did not use them often enough to be used to this behavior. I always had the panel from Adobe apps in mind ) The panels have the "setBecomesKeyOnlyIfNeeded:YES" set and thats it. Than they get closed by "command+W" if they have the focus (no

Re: NSPanel should not close on command-W

2008-06-21 Thread Andrew Merenbach
On Jun 21, 2008, at 11:00 AM, Georg Seifert wrote: I use the panel as a palette. Something like the systems font chooser. They have the close button enabled, but do not responde to close commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command-w, if

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
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 (wit

Re: NSPanel should not close on command-W

2008-06-21 Thread Jason Stephenson
Georg Seifert wrote: I cannot reproduce this. If I close all documents in Textedit (or any other Mac-App) the font panel stays there and I get a NSBeep on hitting command-w. According to what I read in the docs and what I've experienced in my own applications, panels don't respond to Comman

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I use the panel as a palette. Something like the systems font chooser. They have the close button enabled, but do not responde to close commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command- w, if it becomes key. It is just that it won't become key

Re: NSPanel should not close on command-W

2008-06-21 Thread Keary Suska
6/21/08 11:10 AM, also sprach [EMAIL PROTECTED]: > I use the panel as a palette. Something like the systems font chooser. > They have the close button enabled, but do not responde to close > commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command-w, if it

Re: NSPanel should not close on command-W

2008-06-21 Thread Marco Masser
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,

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
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. How do I prevent this? I am not sur

Re: NSPanel should not close on command-W

2008-06-21 Thread Keary Suska
6/21/08 7:02 AM, also sprach [EMAIL PROTECTED]: > 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 p

NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
Hello, 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. How do I prevent this? Tha