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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:32:32+00:00 2026-05-15T09:32:32+00:00

I am making a application that the user will have to interact with one

  • 0

I am making a application that the user will have to interact with one window and when they have that window configured the way they want it they switch to a different application then my application will begin to do other stuff which i will have defined in a method

say for an example program when the main window has focus it contains a label that says “i am focused” and when the person clicks on the desktop or another window/application then the label will read “i am not focused”.

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-15T09:32:32+00:00Added an answer on May 15, 2026 at 9:32 am

    That is not the same as key window. Key window means that you will receive input events for your application. What you want to know is whether your application is in the foreground. What you’re looking for is the NSApplication notifications NSApplicationDidBecomeActiveNotification and NSApplicationDidResignActiveNotification. Observe those to discover when your application is or isn’t in the foreground. Your application delegate’s applicationDidBecomeActive: and applicationDidResignActive: will automatically be called on these events.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on making an application that will store information, and for user
I'm making a calculator-type application and it will have a resulting string that is
I'm making a small tool application that user can minimize in the taskbar .
I'm making a php web application which stores user specific information that is not
I am making an application that does some custom image processing. The program will
I am developing a cocoa application that will be making heavy use of both
I'm making a VB.NET application that needs to generate a number of different reports.
i'm Creating an application that will be working off a User table, the user
I have an application that is making use of the PhoneGap (version 1.4.1). It
I'm making an iPhone application that needs to show a notification to the user

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.