Cocoa NSStatusBar Global HotKey

Posted by Craig on Stack Overflow See other posts from Stack Overflow or by Craig
Published on 2009-11-01T16:59:52Z Indexed on 2010/03/16 23:31 UTC
Read the original article Hit count: 423

Filed under:
|

I have created an NSStatusBar cocoa application which sits in the system status bar.

I want to assign a hotkey so that when pressed it toggles my applications and show the menu.

Is this possible?, In my searching and experimenting I have found a few different ways of assigning global hot keys that can be pressed when your application is in the background but I can't find any way to problematically make the menu show.

Is this possible?, If anyone thinks a way of assigning a global hotkey is best please post it.

Thanks.


One of the hotkey tutorials I found was on http://dbachrach.com/blog/2005/11/program-global-hotkeys-in-cocoa-easily/ for anyone interested.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about hotkey