• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: HotKeys in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: HotKeys in Cocoa
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: HotKeys in Cocoa (From: Pierre-Olivier Latour <email@hidden>)

  • Prev by Date: Re: HotKeys in Cocoa
  • Next by Date: Re: Frameworks refernce online...
  • Previous by thread: Re: HotKeys in Cocoa
  • Next by thread: Re: HotKeys in Cocoa
  • Index(es):
    • Date
    • Thread