• 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: Best way to ensure prevent multiplying helper tasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to ensure prevent multiplying helper tasks


  • Subject: Re: Best way to ensure prevent multiplying helper tasks
  • From: Daniel Jalkut <email@hidden>
  • Date: Fri, 16 Dec 2005 18:04:39 -0500

Hmm, I'll have to think about that. In my particular case the helper process is assisting a web browser plugin. So I don't really want it to live on as long as the browser is running - just as long as my plugin is using it, and maybe a few minutes longer.

I didn't know about that technote, though. I am sure that will come in handy at some point.

Daniel

On Dec 16, 2005, at 5:52 PM, John Stiles wrote:

Your client process could quit itself if the server app dies by observing process lifetimes:
http://developer.apple.com/technotes/tn/tn2050.html

This way you don't need timers or polling to determine if the server app has died. (Although a timer that fires, say, once an hour to check for the server app is hardly a big deal either.)
The sample code in this technote is horribly bloated, but the techniques are applicable.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Best way to ensure prevent multiplying helper tasks
      • From: Daniel Jalkut <email@hidden>
References: 
 >Best way to ensure prevent multiplying helper tasks (From: Daniel Jalkut <email@hidden>)
 >Re: Best way to ensure prevent multiplying helper tasks (From: John Stiles <email@hidden>)
 >Re: Best way to ensure prevent multiplying helper tasks (From: Daniel Jalkut <email@hidden>)
 >Re: Best way to ensure prevent multiplying helper tasks (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Best way to ensure prevent multiplying helper tasks
  • Next by Date: Re: NSNotification / Core Data roadblock [solved]
  • Previous by thread: Re: Best way to ensure prevent multiplying helper tasks
  • Next by thread: Re: Best way to ensure prevent multiplying helper tasks
  • Index(es):
    • Date
    • Thread