RE:Listening to global key down
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.