• 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
Re: Several Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Several Questions


  • Subject: Re: Several Questions
  • From: Michael Ash <email@hidden>
  • Date: Mon, 1 Jun 2009 11:43:33 -0400

On Mon, Jun 1, 2009 at 7:19 AM, Ammar Ibrahim <email@hidden> wrote:
> Great, so I understand from what you're saying that I can launch a GUI app
> using launchd? I will look into it. Also, what if the application stops
> responding? Is that something that launchd can detect?

As far as I know, no, launchd can't know if you "stop responding",
which is not a well defined condition in any case.

You'll have to do that part of it yourself. Ideally, you'll have a
separate tool (which can also be maintained by launchd) that pings the
main application periodically and kills it if it doesn't respond
within some timeout. This tool would be as small as possible to reduce
the chance of a hanging bug in it. You could do a similar thing by
simply spawning a watchdog thread within your own application,
although the chance for mishap is higher there.

Mike
_______________________________________________

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

References: 
 >Re: Several Questions (From: Ammar Ibrahim <email@hidden>)

  • Prev by Date: Re: Several Questions
  • Next by Date: Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7
  • Previous by thread: Re: Several Questions
  • Next by thread: Re: Several Questions
  • Index(es):
    • Date
    • Thread