Monday, February 23, 2009

Asynchronous Downloading of Images in a Table View

Mark Johnson, who is (among other things) an iPhone developer and also teaches iPhone programming classes, has posted a great blog entry on asynchronous downloading of images into a table view. Asynchronous networking is one area that a lot of readers have expressed an interest in and confusion about, and it's also one topic that we don't cover in the book. Mark's blog post is a great place to go if you're confused and/or interested. It's clear, well-explained, and uses a very practical example to illustrate its points. If you're confused by asynchronous networking, it's well worth your time to stop by his blog.

While you're there, check out Mark's iPhone applications: Hit Tennis and Smart Caller.



5 comments:

Alfons said...

Implementing NSOperations for async tasks are my favourite patterns to do this.
There are some drawbacks on the iPhone, though: It only seems to support one global operation queue.

Jeff LaMarche said...

Alfons:

NSOperation and NSOperationQueue are very cool concepts, and I'm thinking they will come into their own with Snow Leopard, but they do have some problems, such as:

http://www.mikeash.com/?page=pyblog/dont-use-nsoperationqueue.html

http://www.cocoabuilder.com/archive/message/cocoa/2008/11/26/223748

So, just an FYI - but the problems appear to be Intel-only. Most people have no problem with them, but if you hit the problem, it's a killer.

Jeff LaMarche said...

Note to whomever: If you spam my comments, I will delete your post, even your spam is iPhone-related. If you want to bring something to my attention, e-mail me. If I think my readers would be interested in your product or blog or whatever, I'll gladly blog it, but don't hijack comment threads to promote your iPhone products; it's rude, and they will be deleted.

Edwin said...

scrub m65 kamagra attorney lawyer body scrub field jacket lovegra marijuana attorney injury lawyer

h4ns said...

What youre saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say.

Arsenal vs Huddersfield Town live streaming
Arsenal vs Huddersfield Town live streaming
Wolverhampton Wanderers vs Stoke City Live Streaming
Wolverhampton Wanderers vs Stoke City Live Streaming
Notts County vs Manchester City Live Streaming
Notts County vs Manchester City Live Streaming
Bologna vs AS Roma Live Streaming
Bologna vs AS Roma Live Streaming
Juventus vs Udinese Live Streaming
Juventus vs Udinese Live Streaming
Napoli vs Sampdoria Live Streaming
Napoli vs Sampdoria Live Streaming
Fulham vs Tottenham Hotspur Live Streaming
Fulham vs Tottenham Hotspur Live Streaming
AS Monaco vs Marseille Live Streaming
AS Monaco vs Marseille Live Streaming
Alajuelense vs Perez Zeledon Live Streaming
Alajuelense vs Perez Zeledon Live Streaming
Technology News | News Today | Live Streaming TV Channels