Re: Asynchronous downloading and parsing of XML
Re: Asynchronous downloading and parsing of XML
- Subject: Re: Asynchronous downloading and parsing of XML
- From: Thomas Davie <email@hidden>
- Date: Mon, 08 Aug 2011 18:20:32 +0100
On 8 Aug 2011, at 18:16, Mikkel Islay wrote:
> On 8 Aug 2011, at 19:04, Thomas Davie wrote:
>>
>> Parameters
>> stream
>> The input stream. The content is incrementally loaded from the specified stream and parsed.
>
> No, that states something about the way NSXMLParser is able to parse from a stream. It doesn't say anything about its state with respect to the main thread.
I'm not sure what you're getting at… The key facts are…
NSURLConnection provides data incrementally.
The URLConnection delegate takes that data incrementally and provides it to the stream incrementally.
The Stream takes the data incrementally and provides it to the parser as it gets it.
The XML parser takes the data incrementally and calls the delegate when it parses something successfully.
All of this is asynchronous, so everything works happily :)
Tom Davie_______________________________________________
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