Re: HotKeys in Cocoa
Re: HotKeys in Cocoa
- Subject: Re: HotKeys in Cocoa
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 24 Aug 2002 12:28:27 +0100
On Saturday, August 24, 2002, at 08:28 am, Allan Odgaard wrote:
It seems this sample code is broken under 10.2, anyone found a fix yet?
When you type the hotkey, the app crashes...
The sendEvent selector of NSApplication will crash if you call it with
an event of type NSSystemDefined.
So make a check that omits calling super if that's the case.
They you'll lose some events, won't you?
Anyway, haven't Apple fixed Carbon Events so they work in Cocoa? You
should be able to use the less hackish way of doing HotKeys in 10.2.
-- Finlay
_______________________________________________
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.