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 3499762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:39:04+00:00 2026-05-18T12:39:04+00:00

I successfully registered a hot key; its handler brings my app window to the

  • 0

I successfully registered a hot key; its handler brings my app window to the front: [NSApp activateIgnoringOtherApps:YES]; (it is supposed to at least).

I have the expected behavior when my app window is in not in the front.
But it doesn’t work when I close the window (clicking the red x) or when I minimize it (clicking the yellow –).
I still see the log though so the handler is called.

Any ideas?

Thanks.
-L

  • 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-18T12:39:05+00:00Added an answer on May 18, 2026 at 12:39 pm

    I would set the window to have the following attributes in the nib:

    alt text

    The key things are, if you plan on having the window open and closed several times, to make sure “Release when closed” is unchecked. You may also want to uncheck “Visible at Launch” to make it more clear that you’ll handle the showing of the window yourself in code. (It’s the presence of this flag which is likely responsible for your window being shown at all, immediately when the nib is loaded).

    To show the window in code, just do something like the following (assuming you have an IBOutlet for window):

    [window makeKeyAndOrderFront:nil];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've successfully registered a window class using RegisterClassEx and created a window using CreateWindowEx
I have the following key/message in a properties file: kadjoukor.registration.form.successMessage=You've been successfully registered. An
In a registration procedure, after a user has successfully registered, I need to output
I can register my android app with C2DM successfully using a <receiver> in my
How to write a code for displaying the alert message: Successfully registered, after user
I am using Authorize.net and device registered successfully but getTransactionDetailsSucceeded is not called? how
I have a response @response from Sage Pay: VPSProtocol=2.23 Status=OK StatusDetail=Server transaction registered successfully.
I'm trying to program an GPIO IRQ on AT91SAM9M10-EKES evaluation board. I successfully registered
I'm trying to get my first Android plugin to work. I've successfully registered it
I have created a C# class library and registered as com object successfully. and

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.