Re: NSTask setStandardOutput: then stringWithContentsOfFile
Re: NSTask setStandardOutput: then stringWithContentsOfFile
- Subject: Re: NSTask setStandardOutput: then stringWithContentsOfFile
- From: Gonzalo Castro <email@hidden>
- Date: Tue, 28 Aug 2007 16:30:10 -0400
Yes, I was using [[NSWorkspace sharedWorkspace] launchedApplications]
but also needed a way to detect the app process when the app runs
with no UI.
I googled and searched the cocoa-dev archives and eventually came
upon "GetBSDProcessList" and then searched for that and found useful
code here:
http://developer.apple.com/qa/qa2001/qa1123.html
http://www.cocoabuilder.com/archive/message/cocoa/2003/5/5/92971
GetBSDProcessList makes use of the C function sysctl.
Thanks,
Gonzalo
_______________________________________________
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