• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: catch key event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: beginning Obj-C [LONG]
  • Next by Date: Objective-C or C++ or something...
  • Previous by thread: Re: catch key event
  • Next by thread: broadcasting with sockets
  • Index(es):
    • Date
    • Thread