• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Showing activity indicator during data download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Showing activity indicator during data download (From: DKJ <email@hidden>)
 >Re: Showing activity indicator during data download (From: DKJ <email@hidden>)
 >Re: Showing activity indicator during data download (From: Alastair Houghton <email@hidden>)
 >Re: Showing activity indicator during data download (From: DKJ <email@hidden>)
 >Re: Showing activity indicator during data download (From: Alastair Houghton <email@hidden>)
 >Re: Showing activity indicator during data download (From: DKJ <email@hidden>)

  • Prev by Date: Re: Binding To Array Controller From A Different XIB?
  • Next by Date: re: "Could not merge data"-error on save in a single moc app
  • Previous by thread: Re: Showing activity indicator during data download
  • Next by thread: Re: Showing activity indicator during data download
  • Index(es):
    • Date
    • Thread