Re: Showing activity indicator during data download
Re: Showing activity indicator during data download
- Subject: Re: Showing activity indicator during data download
- From: Jens Alfke <email@hidden>
- Date: Thu, 29 Oct 2009 11:31:46 -0700
On Oct 29, 2009, at 9:40 AM, DKJ wrote:
I did implement this, and got it to work. But some of the files I'm
downloading are XML data that needs to be parsed. And the parser
can't start until the file download is complete, which is what made
the synchronous download so appealing.
It's annoying that Foundation and CF still don't provide an
incremental parser. But you can use the lower-level libxml2 to parse
incrementally as the data arrives, if that's important.
Since non-XML files are also being downloaded, I can't simply
initiate the XML parsing from the connectionDidFinishLoading
delegate method.
Sure you can. Either use a different delegate class for your XML
files, or put a flag in the delegate that's YES if this file should be
parsed.
—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