Re: Knowing when an app is launched and becomes active?
Re: Knowing when an app is launched and becomes active?
- Subject: Re: Knowing when an app is launched and becomes active?
- From: Marc Respass <email@hidden>
- Date: Wed, 15 Nov 2006 15:51:33 -0500
On Nov 15, 2006, at 2:56 PM, Shawn Erickson wrote:
On 11/15/06, Marc Respass <email@hidden> wrote:
I haven't found a way to know when an application is launched and
when it's the front most app.
Note "NSWorkspaceDidLaunchApplicationNotification" and
"NSWorkspaceDidTerminateApplicationNotification" that generally cover
the first part of your question.
...with that said using Carbon may be the best solution given your
overall need.
Thanks Shawn,
Monitoring time that the app is active may require Carbon but those
two notifications work and they're easy. Thanks a lot.
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden