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 protected])

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 [email protected]

Reply via email to