• 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: Listening key board event while application in status bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Listening key board event while application in status bar


  • Subject: Re: Listening key board event while application in status bar
  • From: Eric Schlegel <email@hidden>
  • Date: Tue, 03 Mar 2009 09:28:53 -0800


On Mar 3, 2009, at 4:50 AM, Vijay Kanse wrote:

Hello,
My application remains in system status bar. and i have three menu items
with my application icon.
I want to add key board listener for my application. so, if i press ctrl +
shift + f12 then it should give me some event. the menu should not display
this shortcut and menu item.
is it possible to have such events keeping application in system status bar
?

Hi Vijay,

Take a look at the Carbon hotkey API RegisterEventHotKey, in HIToolbox/ CarbonEvents.h.

-eric

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Listening key board event while application in status bar (From: Vijay Kanse <email@hidden>)

  • Prev by Date: Re: To run a block of code at every 1 second
  • Next by Date: Latent objects remain associated in NSTokenField after they are deleted/removed?
  • Previous by thread: Listening key board event while application in status bar
  • Next by thread: Re: Listening key board event while application in status bar
  • Index(es):
    • Date
    • Thread