Re: Asynchronous downloading and parsing of XML
Re: Asynchronous downloading and parsing of XML
- Subject: Re: Asynchronous downloading and parsing of XML
- From: Jens Alfke <email@hidden>
- Date: Sun, 07 Aug 2011 11:45:32 -0700
On Aug 7, 2011, at 4:47 AM, Mikkel Islay wrote:
> I wonder what the purpose of NSURLConnection is in this solution?
To do the HTTP fetching. This is a PITA to get right if you implement it yourself, if that’s what you’re thinking of.
> Aren't you in effect throwing away the benefits of asynchronous loading? The NSInputstream can block, and NSXMLParser presumably will.
NSXMLParser reads from the input stream without blocking, and calls its delegate when it parses new data.
—Jens
_______________________________________________
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