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

Re: Stealing keystrokes


  • Subject: Re: Stealing keystrokes
  • From: Andrew Farmer <email@hidden>
  • Date: Sun, 17 Sep 2006 00:20:17 -0700

On 16 Sep 06, at 19:28, Paul FitzGerald wrote:
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.

Grab them in a subclass of NSApplication. -[NSApplication sendEvent:] gets to look at everything before it gets handed off to windows and views.
_______________________________________________
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
References: 
 >Binding to NSTextView (From: "Adam Johnson" <email@hidden>)
 >Stealing keystrokes (From: Paul FitzGerald <email@hidden>)

  • Prev by Date: Re: Capturing keyboard input, including hotkeys
  • Next by Date: PathContainsPoint functionality incomplete
  • Previous by thread: Stealing keystrokes
  • Next by thread: NSUserDefaults using a persistant Domain in a StartUp Item...
  • Index(es):
    • Date
    • Thread