Re: HotKeys in Cocoa
Re: HotKeys in Cocoa
- Subject: Re: HotKeys in Cocoa
- From: email@hidden
- Date: Fri, 23 Aug 2002 21:20:48 -0400
Hi!
It seems this sample code is broken under 10.2, anyone found a fix yet?
When you type the hotkey, the app crashes...
Renaud
On Tuesday, August 20, 2002, at 09:16 AM, Pierre-Olivier Latour wrote:
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:
_______________________________________________
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.