• 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: Catching key events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching key events


  • Subject: Re: Catching key events
  • From: Drew McCormack <email@hidden>
  • Date: Wed, 7 Nov 2001 09:12:46 +0100

This has really been leading me around in circles so much, and has been much harder than I thought it would be.

I'm trying to catch key events in a window. That is all. However, the catch is I have a NSTextField in the window, and I want to intercept key events before they even get passed to the field editor. I need to intercept any key event: arrow keys, function keys, and standard printable keys.

I'm afraid I have no real experience to share here, but isn't it a question of changing the responder chain in some way? If I were you, I would read up on NSResponder.

Drew McCormack


  • Prev by Date: Re: Correct behavior of NSTableView?
  • Next by Date: DotView.m
  • Previous by thread: Re: dataWithContentsOfURL
  • Next by thread: DotView.m
  • Index(es):
    • Date
    • Thread