Re: HotKeys in Cocoa
Re: HotKeys in Cocoa
- Subject: Re: HotKeys in Cocoa
- From: Pierre-Olivier Latour <email@hidden>
- Date: Tue, 20 Aug 2002 15:16:25 +0200
>
the setHotKey message is called (and logs no error), but the
>
call back never is, I must be missing something completely
>
obvious and probably stupid, but I can't see it... :/ (Like I
>
said it is my very first try at carbon events).
>
and obviously, once the code actually works, I WILL dispose the
>
UPP correctly and all that, but I just wanted to try it out
>
first, so how is this supposed to work? (I tried on both Jaguar
>
and Puma).
At least under 10.1, you need to subclass NSApplication so that the hotkey
event sent by the OS is not discard by Cocoa:
See this example code:
http://www.eckysoft.com/downloads/other/HotKeys.dmg
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Lausanne, Switzerland
http://www.pol-online.net
_______________________________________________
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.