Application Activation
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