• 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
Re: Knowing when an app is launched and becomes active?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Knowing when an app is launched and becomes active?


  • Subject: Re: Knowing when an app is launched and becomes active?
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 15 Nov 2006 12:11:00 -0500

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
  • Follow-Ups:
    • Re: Knowing when an app is launched and becomes active?
      • From: Marc Respass <email@hidden>
References: 
 >Knowing when an app is launched and becomes active? (From: Marc Respass <email@hidden>)

  • Prev by Date: Knowing when an app is launched and becomes active?
  • Next by Date: Re: CFRunLookFindMode crash
  • Previous by thread: Knowing when an app is launched and becomes active?
  • Next by thread: Re: Knowing when an app is launched and becomes active?
  • Index(es):
    • Date
    • Thread