On Mon, Jun 1, 2009 at 7:19 AM, Ammar Ibrahim <ammar.ibra...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com