Re: Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)

2010-06-21 Thread John Heitmann
t delegate:handler startImmediately:NO]; > > > Also I don't believe you need to create the autorelease pool. I think GCD > does it for you. > > Lastly, you should run the thread's run loop until your delegate method gets > called indicating the NSURLConnection is done.

Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)

2010-06-21 Thread John Heitmann
On Feb 9, 2010, at 3:01 PM, Keith Duncan wrote: > ...you should create a 'concurrent' NSOperation as described in the > documentation, and schedule your NSURLConnection on +[NSRunLoop mainRunLoop]. > This will allow your NSOperation -start method to exit immediately and the > thread to return