• 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: How to check whether a application is launch or not...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check whether a application is launch or not...?


  • Subject: Re: How to check whether a application is launch or not...?
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 2 Jun 2009 23:21:01 -0500

On Jun 2, 2009, at 5:05 AM, Anshul jain wrote:

I have figured it out how to get the root processes and its information.
My only concern is how i will get a notification when a process is launched. I think there should be a way to get it. Because i think Activity Monitor does this.

I doubt it. It's just scanning the process list every N seconds, using a technique like that described here:


http://developer.apple.com/qa/qa2001/qa1123.html

For _certain kinds_ of processes, you can get notifications from NSWorkspace or via Carbon Events. If you haven't already read it, read this:

http://developer.apple.com/technotes/tn/tn2050.html

Regards,
Ken

_______________________________________________

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


References: 
 >Re: How to check whether a application is launch or not...? (From: Anshul jain <email@hidden>)

  • Prev by Date: NSDictionary dictionaryWithContentsOfURL problem
  • Next by Date: Re: How determine if file is in Trash, given Path or Alias
  • Previous by thread: Re: How to check whether a application is launch or not...?
  • Next by thread: Is it possible to open a URL in a specific browser rather than the default one ???
  • Index(es):
    • Date
    • Thread