• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Application Activation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Activation


  • Subject: Application Activation
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 22 Feb 2009 17:56:45 +0700

There are two ways an app can become active:
1. by explicit user action (clicking in Finder, clicking in Dock, using Command-Tab)
or:
2. without user action (frontmost app is closed or hidden, so the next app becomes active).


I would like to perform some action (like displaying an NSOpenPanel) in case 1 (the user wants my app to be active) but not in case 2 (my app becomes active by accident).

Currently I am using NSApplication delegate method applicationDidBecomeActive: - but this gets called in both cases.

Is there a way to diffentiate between these two cases?

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Application Activation
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Application Activation
      • From: Benjamin Dobson <email@hidden>
  • Prev by Date: Re: SSH Tunnel
  • Next by Date: Re: SSH Tunnel
  • Previous by thread: Define keyboard shortcut in System Preferences programmatically
  • Next by thread: Re: Application Activation
  • Index(es):
    • Date
    • Thread