Re: The current preferred method for fetching HTTP URLs for IOS

2012-03-10 Thread Andreas Grosam
c On Mar 9, 2012, at 8:14 PM, Alex Zavatone wrote: > I've been reading (and trying out) a few approaches on HTTP communication > using GCD to do a dispatch_sync or dispatch_async to a dispatch queue or > using an NSURLRequest. > > Which of these is the preferred method for ingesting strings fro

Re: The current preferred method for fetching HTTP URLs for IOS

2012-03-09 Thread Wade Tregaskis
> FWIW, my view is that it depends on what your requirements are. For a simple > request, you can go with an [NSString stringWithContentsOfURL] wrapped in a > call to dispatch_async to avoid blocking the main thread. But keep in mind that threads are not free and there are a finite number avai

Re: The current preferred method for fetching HTTP URLs for IOS

2012-03-09 Thread Marco Tabini
> I've been reading (and trying out) a few approaches on HTTP communication > using GCD to do a dispatch_sync or dispatch_async to a dispatch queue or > using an NSURLRequest. > > Which of these is the preferred method for ingesting strings from HTTP URLs > on iOS? Are there any plusses to one

The current preferred method for fetching HTTP URLs for IOS

2012-03-09 Thread Alex Zavatone
I've been reading (and trying out) a few approaches on HTTP communication using GCD to do a dispatch_sync or dispatch_async to a dispatch queue or using an NSURLRequest. Which of these is the preferred method for ingesting strings from HTTP URLs on iOS? Are there any plusses to one over the ot