• 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: Question on threads running in my Foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on threads running in my Foundation tool


  • Subject: Re: Question on threads running in my Foundation tool
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 20 Feb 2009 11:48:49 -0700


On Feb 20, 2009, at 11:30 AM, Charles E. Heizer wrote:

The question/issue I have is my app appears to create separate threads for different actions such as NSTask, NSURL, NSURLRequest which is OK. The problem is they don't go away once completed. What can I do to assure that these methods dont leave these abandon threads?


NSTask and NSURLRequest work asynchronously using a run loop, and this sort of thing happens if you are not using a run loop in your thread. I'd recommend using those classes in the main thread unless you have a really good reason to be using extra threads.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

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: Question on threads running in my Foundation tool
      • From: "Charles E. Heizer" <email@hidden>
References: 
 >Question on threads running in my Foundation tool (From: "Charles E. Heizer" <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Question on threads running in my Foundation tool
  • Previous by thread: Question on threads running in my Foundation tool
  • Next by thread: Re: Question on threads running in my Foundation tool
  • Index(es):
    • Date
    • Thread