Re: NSURLConnection - data comes in after completion

2010-08-03 Thread Michael Ash
On Mon, Aug 2, 2010 at 1:20 PM, Fritz Anderson fri...@manoverboard.org wrote: On 2 Aug 2010, at 11:50 AM, David Duncan wrote: On Aug 2, 2010, at 9:40 AM, Fritz Anderson wrote: The didReceiveData: callback asserts that the data accumulator exists. In certain circumstances (it seems to be

NSURLConnection - data comes in after completion

2010-08-02 Thread Fritz Anderson
iOS 4.0.1 SDK, Simulator 4.0. The behavior matches a bug report on 3.x device. I have a problem with NSURLConnection that I've solved, but I don't trust the solution, so I'd like some assurance that I'm doing the right thing. As you see in the code excerpt, I start a download asynchronously,

Re: NSURLConnection - data comes in after completion

2010-08-02 Thread David Duncan
On Aug 2, 2010, at 9:40 AM, Fritz Anderson wrote: The didReceiveData: callback asserts that the data accumulator exists. In certain circumstances (it seems to be with four of these requests started nearly simultaneously), the assertion is triggered. self.dataAccumulator is nil, and there

Re: NSURLConnection - data comes in after completion

2010-08-02 Thread Fritz Anderson
On 2 Aug 2010, at 11:50 AM, David Duncan wrote: On Aug 2, 2010, at 9:40 AM, Fritz Anderson wrote: The didReceiveData: callback asserts that the data accumulator exists. In certain circumstances (it seems to be with four of these requests started nearly simultaneously), the assertion is