Re: Asynchronous downloading and parsing of XML
Re: Asynchronous downloading and parsing of XML
- Subject: Re: Asynchronous downloading and parsing of XML
- From: Mikkel Islay <email@hidden>
- Date: Tue, 09 Aug 2011 12:40:10 +0200
On 8 Aug 2011, at 19:20, Thomas Davie wrote:
> All of this is asynchronous, so everything works happily :)
Sure, "we" have established that your solution works, so far so good.
What I am trying to get at is whether there is some design-pattern implied in the docs for the class which should alert me to the behaviour that it will not block the main-thread.
An alternative solution to yours, might be batching NSData-objects as they are delivered by NSURLConnection and sending NSXMLParser off on a dispatch queue, so the main thread is not blocked.
Mikkel
_______________________________________________
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