• 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: Ammar Ibrahim <email@hidden>
  • Date: Sun, 31 May 2009 21:08:36 +0300

On Sun, May 31, 2009 at 3:57 PM, Uli Kusterer
<email@hidden>wrote:

> Am 31.05.2009 um 12:12 schrieb Jelle De Laender:
>
>> Can you give us so more details? For example: What will the app do?
>> Your description is very strange, lol.
>>
>> But indeed, you should create a normal cocoa app that do the stuff you
>> want to do (UI + the real stuff),
>> and a little daemon that checks every X minutes if the other app is
>> running:
>>        yes: ok, continue
>>        no: start app (log message? App was stopped)
>>
>
>
>  Look at CFNotification and the distributed notification center (I thought
> there was a Cocoa variant of that, but I can't seem to find it) for a way to
> detect whether your app has hung. You could just do a ping/pong set of
> question/reply notifications that your daemon sends to your app and gets a
> reply. If the app is still running but there's no reply within a sensible
> timeframe, something has gone wrong.
>


This seems like a very doable approach. Anyhow, the daemon itself might
crash, so I would go for a cron job that runs say every 5 mins,

Now let's assume the app was running and not responding, I couldn't find any
API to "force quit" another application. Would a `kill -9 {process ID}` be
sufficient?
_______________________________________________

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

  • Follow-Ups:
    • Re: Several Questions
      • From: Gwynne Raskind <email@hidden>
    • Re: Several Questions
      • From: Kyle Sluder <email@hidden>
References: 
 >Several Questions (From: Ammar Ibrahim <email@hidden>)
 >Re: Several Questions (From: Kyle Sluder <email@hidden>)
 >Re: Several Questions (From: Ammar Ibrahim <email@hidden>)
 >Re: Several Questions (From: Chris Hanson <email@hidden>)
 >Re: Several Questions (From: Ammar Ibrahim <email@hidden>)
 >Re: Several Questions (From: Alexander Spohr <email@hidden>)
 >Re: Several Questions (From: Jelle De Laender <email@hidden>)
 >Re: Several Questions (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Nike+iPod Settings Undocumented?
  • Next by Date: Re: Several Questions
  • Previous by thread: Re: Several Questions
  • Next by thread: Re: Several Questions
  • Index(es):
    • Date
    • Thread