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 12:30:37 -0500
Very cool. You're right, it is exactly what I want. Many thanks!
Marc
On Nov 15, 2006, at 12:11 PM, Daniel Jalkut wrote:
Hi Marc - you can use Carbon events to track "front app changed"
events.
See my open source example for a head-start:
http://ironcoder.org/entries/ironcoder_2/DCJ-WHYDFML.zip
Daniel
On Nov 15, 2006, at 12:06 PM, Marc Respass wrote:
Hi all,
I have a list of applications that I want to watch. I want to know
when they are running and when they are active so that I can track
the amount of time I spend in each. It's easy enough to get a list
of running windowed apps from NSWorkspace but, so far, I haven't
found a way to know when an application is launched and when it's
the front most app. I looked though Process Manager and Launch
Services and I don't see anything. Maybe I'm looking for the wrong
thing. I was sort of hoping for some kind of notification that I
can register to receive. Does anyone know where I should be
looking for this info and can point me in the right direction?
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:
sweater.com
This email sent to email@hidden
_______________________________________________
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