Re: catch key event
Re: catch key event
- Subject: Re: catch key event
- From: Julien Guimont <email@hidden>
- Date: Thu, 07 Aug 2003 16:46:26 -0300
>
Message: 10
>
Date: Thu, 7 Aug 2003 18:55:57 +0200
>
Subject: catch key event
>
From: email@hidden
>
To: email@hidden
>
>
hi all,
>
how can i catch the pression of the up key from the controller's class
>
? i'm looking for something like a notification, but i don't found
>
anything useful.
>
>
Thanks
>
Wezzy
>
Hello,
Well if you want to catch sme keys, you need to be in the responder chain. To be so your controller (which I presume controls a window) must be derived from NSWindowController. From that point you can catch every keys the views and window the controller controls rejected.
If you want something precise (like catching event on a particular view), i don't think you can without subclassing it. if you are talking about some NSTextVew, I thhink there is delegate methods to do this stuff.
I hope this could help,
Julien Guimont
www.juggysoft.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.