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

  • Home
  • SEARCH
  • 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 have installed Euca 2.0.1 on Fedora 14. I have successfully manage to register
I've created a C# COM object, and am trying to instantiate it from VBscript
i have been recently studying php and mysql and also is currently developing a
When using the ArrayResolver, if I register multiple implementations of an interface and a
Is it possible to use visual studio to create an install package for COM+?
I am trying to implement Haystack search for my website with Whoosh back-end. I
I am having trouble testing out push notifications using the C2DM service. I am
I am getting when I try to run jiewmeng@klifmedia:~/cloud9$ sudo bin/cloud9.sh [sudo] password for
I have a process that runs in a thread (used as a realtime signal
I'm new to Drupal (v6) and PHP, and I'm trying to implement some content

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.