On May 2, 4:46=A0pm, Gregory Weston <u...@[EMAIL PROTECTED]
> wrote:
> In article
> <b25ee72c-1881-4ac1-b1b0-5ded5b0e4...@[EMAIL PROTECTED]
>,
>
> =A0p2 <pradip.pa...@[EMAIL PROTECTED]
> wrote:
> > Hi
>
> > I am creating window without menubar. The controller class is derived
> > from NSWindowController.
>
> > How can i respond cmd+w command to close the window?
>
> > If menubar is there then default cmd+w is there in file menu. So
> > without menubar how can i achieve this ?
>
> > p2
>
> Make the window's content view a custom class that responds to cmd-w.
>
> --
> "Harry?" Ron's voice was a mere whisper. "Do you smell something ...
burni=
ng?"
> =A0 =A0- Harry Potter and the Odor of the Phoenix
Hi
Thanks for responding.
I am not getting what you are trying to say ..
does you mean : add custom controll to window which handle cmd+w. ?
Can we get cmd+w via keyBoard messages ? keyDown ?
I tried with keyDown which is not able to get cmd (also
****ft,ctrl..)key..it will get other keys.
to handle cmd,****ft...i used flagsChanged which got all these keys,
BUT How can i receive flags keys and other keys altogather ?
p2


|