• 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
checking a launched program before launching a new one
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: checking a launched program before launching a new one
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Predicates with object identity values
  • Next by Date: Re: Run a process as root (asking only one time the root password)
  • Previous by thread: Re: Predicates with object identity values
  • Next by thread: Re: checking a launched program before launching a new one
  • Index(es):
    • Date
    • Thread