Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > Re: respond to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 14 Topic 3731 of 3882
Post > Topic >>

Re: respond to cmd+w

by p2 <pradip.patel@[EMAIL PROTECTED] > May 11, 2008 at 10:19 PM

On May 9, 7:18=A0pm, Gregory Weston <u...@[EMAIL PROTECTED]
> wrote:
> In article
> <587f17d3-f589-4923-97a3-27adfe3a8...@[EMAIL PROTECTED]
>,
>
>
>
>
>
> =A0p2 <pradip.pa...@[EMAIL PROTECTED]
> wrote:
> > On May 8, 11:30=A0pm, Gregory Weston <u...@[EMAIL PROTECTED]
> wrote:
> > > In article
> > > <8bb15f8a-73ca-4067-86de-665a55a06...@[EMAIL PROTECTED]
>,
>
> > > =A0p2 <pradip.pa...@[EMAIL PROTECTED]
> wrote:
> > > > > > How can i get this event in my custom class ? Is any thing
missi=
ng ?
>
> > > > > Yes. You're missing the fact that I noted multiple times that
you
> > > > > should
> > > > > subclass NSView or NSWindow for this behavior. It has to be an
> > > > > NSResponder subclass and it has to be in the active responder
chai=
n.
>
> > > > But the NSWindowController is also derived from NSResponder
>
> > > "... and it has to be in the active responder chain."
>
> > > Obviously your window controller is not making it into the responder
> > > chain.
>
> > means, anyway i cannot get performKeyEquivalent in my custom class
> > which is derived from NSWindowController
>
> Unless you insert your window controller into the responder chain.
>
> --
> "Harry?" Ron's voice was a mere whisper. "Do you smell something ...
burni=
ng?"
> =A0 =A0- Harry Potter and the Odor of the Phoenix- Hide quoted text -
>
> - Show quoted text -

I made initialFirstResponder to my custom class using Interface
Builder, eventhough i could not get performKeyEquivalent message in my
custom class.
Also i made FirstResponder to my custom class using
[[self window] makeFirstResponder:self]  \\i checked this is returning
YES.
Eventhough i could not get performKeyEquivalent message in my custom
class.

Can you please help me further ? this is the long discussion because
of my lack of knowledge.

p2
 




 14 Posts in Topic:
respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-02 03:28:37 
Re: respond to cmd+w
Gregory Weston <uce@[E  2008-05-02 07:46:26 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-03 00:07:42 
Re: respond to cmd+w
Gregory Weston <uce@[E  2008-05-03 06:34:10 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-04 22:48:18 
Re: respond to cmd+w
Gregory Weston <uce@[E  2008-05-05 06:29:51 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-08 04:40:24 
Re: respond to cmd+w
Gregory Weston <uce@[E  2008-05-08 08:32:20 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-08 05:47:35 
Re: respond to cmd+w
Gregory Weston <uce@[E  2008-05-08 14:30:35 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-08 21:54:36 
Re: respond to cmd+w
Gregory Weston <uce@[E  2008-05-09 10:18:38 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-11 22:19:39 
Re: respond to cmd+w
p2 <pradip.patel@[EMAI  2008-05-12 05:27:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 9:56:51 CST 2008.