• 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
Stealing keystrokes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stealing keystrokes


  • Subject: Stealing keystrokes
  • From: Paul FitzGerald <email@hidden>
  • Date: Sat, 16 Sep 2006 19:28:59 -0700

I want to steal or filter key events before they get to any of the UI in my window. Currently I have a dummy custom subview of NSView in the window that I make first responder that overrides keyDown: and keyUp:. I don't really like this implementation and I really only want to get the keys, not the other events.

I was thinking it would be best if I could get the key events at the NSWindow before they are sent to the first responder but I can't figure out if that can be done. I only want to filter key events going to this window so this would make sense.

Anyone have an idea how I could do this?
Any other ideas?

Thanks,
Paul


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Stealing keystrokes
      • From: Andrew Farmer <email@hidden>
References: 
 >Binding to NSTextView (From: "Adam Johnson" <email@hidden>)

  • Prev by Date: Re: Capturing keyboard input, including hotkeys
  • Next by Date: Re: Cocoa-dev Digest, Vol 3, Issue 1136
  • Previous by thread: Re: Binding to NSTextView
  • Next by thread: Re: Stealing keystrokes
  • Index(es):
    • Date
    • Thread