Re: Getting process table info from within a Cocoa app
Re: Getting process table info from within a Cocoa app
- Subject: Re: Getting process table info from within a Cocoa app
- From: Ken Thomases <email@hidden>
- Date: Sat, 26 Jul 2008 19:44:21 -0500
On Jul 26, 2008, at 12:58 AM, Sumner Trammell wrote:
Hi. A daemon process is running independently of my Cocoa app.
Given a pid
file of the daemon process in a known location, say /var/run/
somedaemon.pid,
I would like my Cocoa app to read that file and check the process
table to
see if the daemon is actually running. If the daemon IS running, I
want my
Cocoa app to change its Dock icon.
Is there a canonical Cocoa way of doing this?
You can adapt the techniques described in this tech note: http://developer.apple.com/qa/qa2001/qa1123.html
Cheers,
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