• 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: Asynchronous downloading and parsing of XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Asynchronous downloading and parsing of XML
      • From: Mikkel Islay <email@hidden>
References: 
 >Asynchronous downloading and parsing of XML (From: Thomas Davie <email@hidden>)
 >Re: Asynchronous downloading and parsing of XML (From: Thomas Davie <email@hidden>)
 >Re: Asynchronous downloading and parsing of XML (From: Mikkel Islay <email@hidden>)
 >Re: Asynchronous downloading and parsing of XML (From: Andreas Grosam <email@hidden>)
 >Re: Asynchronous downloading and parsing of XML (From: Mikkel Islay <email@hidden>)
 >Re: Asynchronous downloading and parsing of XML (From: Thomas Davie <email@hidden>)
 >Re: Asynchronous downloading and parsing of XML (From: Mikkel Islay <email@hidden>)

  • Prev by Date: Re: Asynchronous downloading and parsing of XML
  • Next by Date: Re: Drawing text like Lion's Mail
  • Previous by thread: Re: Asynchronous downloading and parsing of XML
  • Next by thread: Re: Asynchronous downloading and parsing of XML
  • Index(es):
    • Date
    • Thread