Re: How to check whether a application is launch or not...?
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