Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3951882
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:47:01+00:00 2026-05-20T01:47:01+00:00

I have an application that, upon activation, is ‘backgrounded’ and has an NSStatusItem icon

  • 0

I have an application that, upon activation, is ‘backgrounded’ and has an NSStatusItem icon which can be clicked to either close the application or open an NSWindow.

Currently, I can click the icon, and then press command+option+T and the NSWindow will activate but what I can’t do is press the key combo without first clicking the NSStatusItem.

So, I was wondering if it’s possible at all to register a hot-key in the system or where do I need to be looking so that I don’t have to first click the status item to ‘activate’ the application?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:47:02+00:00Added an answer on May 20, 2026 at 1:47 am

    Yep! Implementing global hotkeys yourself is a bit tedious, but there are some really great wrappers out there. I’m quite partial to the one I wrote: http://github.com/davedelong/DDHotKey

    You use it like this:

    - (void) registerHotkey {
        DDHotKeyCenter * c = [[DDHotKeyCenter alloc] init];
        [c registerHotKeyWithKeyCode:9 modifierFlags:NSControlKeyMask target:self action:@selector(hotkeyWithEvent:) object:nil];
        [c release];
    }
    
    - (void) hotkeyWithEvent:(NSEvent *)hkEvent {
        NSLog(@"hotkey event: %@", hkEvent);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an option pane that is displayed upon closing my Application ( windowClosing()
I have application that is up more than 3 days. I can see in
I have an application that is deployed with ClickOnce, and has an option to
I can successfully build a VB6 application that relies upon several DCOM settings on
Scenario: I have an application (C#) that expects a SQL database and login, which
So I have a Rails application that upon user submission should generate some kind
I have an application that needs to be called upon by a second application.
I have a java application build upon Spring 3. This project has another jar
I have in my C++ application a failure that arose upon porting to 32
I have an application that shows a presentModalViewController upon launch. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.