checking a launched program before launching a new one
checking a launched program before launching a new one
- Subject: checking a launched program before launching a new one
- From: Angelo Chen <email@hidden>
- Date: Fri, 22 Jun 2007 00:39:52 +0800 (CST)
Hi,
I use following code to launch a program in
background, however there are times that my app
crashes without removing the program launched, is
there a way to check first if the launched program
still in memory? thanks.
LSLaunchURLSpec inLaunchSpec = { executableURL,
NULL, NULL, kLSLaunchDontSwitch |
kLSLaunchDefaults, NULL };
OSStatus err = LSOpenFromURLSpec(&inLaunchSpec,
NULL);
Thanks,
現在你可輕易阻擋垃圾郵件,立即使用Yahoo! Mail你就會相信!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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