• 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: NSURLConnection vs. NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection vs. NSThread


  • Subject: Re: NSURLConnection vs. NSThread
  • From: Michael Ash <email@hidden>
  • Date: Thu, 14 May 2009 17:56:08 -0400

On Thu, May 14, 2009 at 4:52 PM, Eric E. Dolecki <email@hidden> wrote:
> Just curious, but if I am loading images into a UIImageView in table cells
> from online URLs, is it better to use NSThread or use async NSURLConnection
> to ensure that the scrolling is smooth while images are loaded in?

I'd recommend the async method if it's at all reasonable. Threads are
difficult to write, dangerous to use, and difficult to debug. If you
can avoid them without blocking your app or causing major coding
headaches, then it's generally best to avoid them.

Mike
_______________________________________________

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: NSURLConnection vs. NSThread
      • From: Luke the Hiesterman <email@hidden>
References: 
 >NSURLConnection vs. NSThread (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: display optimization / display rectangles
  • Next by Date: Re: NSURLConnection vs. NSThread
  • Previous by thread: NSURLConnection vs. NSThread
  • Next by thread: Re: NSURLConnection vs. NSThread
  • Index(es):
    • Date
    • Thread