Getting key events when the program is in the background?
Getting key events when the program is in the background?
- Subject: Getting key events when the program is in the background?
- From: Pierre-Olivier Latour <email@hidden>
- Date: Sat, 29 Jun 2002 17:28:59 +0200
Hi,
As a new member to this list, I'd like say hello to everyone first :)
A word about me: I've been developing mac software for about 8 years I guess
(starting with Hypercard). I've started Cocoa programming a few months ago
and I really, really enjoy it: Cocoa is awesome! 8-)
However, as I have strong knowledge in the classic MacOS ToolBox, I still
miss the equivalent in Cocoa, especially all the little tricks you need to
know when you want to do "more" than simple apps.
Speaking of this, here are my questions:
1) how do you get key events in your program even when it is in the
background? Is there a clean way to do it, or do you have to use a timer and
GetKeys()?
2) can you intercept key events before they are processed by the OS (like
Command-Shift-3 for example)? And optionally remove them from the global
event queue, so that no "double-action" occurs?
I know this is the kind of question that probably come out now and then, so
I first looked carefully in the archives (full search and by thread), but I
did not find anything :(
I'm really stuck: I have no idea about which API or Class I should use for
this "hack".
Thanks!
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Manager and Lead Programmer
French Touch software
http://www.french-touch.net
Cool source code:
http://www.french-touch.net/CodeWareHouse
_______________________________________________
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.