On Nov 18, 2009, at 11:21 AM, Mark Bateman wrote:

> I am developing an App with a table that will hold URL content.  I want to 
> download that in the background and then have it update the table as it 
> arrives.

Don't do this using threads. Cocoa's networking APIs are asynchronous, so you 
can start a download using NSURLConnection and it will run in the background 
and notify your delegate when it's complete.

You almost never need to start threads in Cocoa programming. This can be hard 
to adjust to if you come from other frameworks, esp. Java.

—Jens

_______________________________________________

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

Reply via email to