• 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:Listening to global key down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE:Listening to global key down


  • Subject: RE:Listening to global key down
  • From: Cristian Savu <email@hidden>
  • Date: Mon, 16 Dec 2002 14:25:08 +0200

One solution :

You have to subclass you NSApplication class and there you should add something like this:

- (void)sendEvent:(NSEvent *)anEvent
{
if ([anEvent type] == NSKeyDown)
{
// DO WHATEVER YOU WANT
}
[super sendEvent:anEvent];
}

If there is another way (a better one) , the more experienced guys from the list will tell you for sure .

Good luck,
Cristian Savu
_______________________________________________
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: mouseMoved events when neither main nor key...
  • Next by Date: [ANN] Meeting - London Cocoa Devs Thursday 19th
  • Previous by thread: mouseMoved events when neither main nor key...
  • Next by thread: [ANN] Meeting - London Cocoa Devs Thursday 19th
  • Index(es):
    • Date
    • Thread