On 31 May 2012, at 1:14 AM, John Drake wrote:

> I figured out what the problem was and answering it here incase anyone else 
> runs into this problem in the future since +[NSXMLParser initWithStream] 
> doesn't have a lot lot of documentation out there. I needed to call 
> -[NSXMLParser parse] right after I allocate NSXMLParser and set myself as 
> delegate. But because it's a synchronous function, I need to call it another 
> thread so I don't block the current thread and it can receive the NSStream 
> events.

Wow.

That's really surprising, given that Apple is acutely aware that synchrony on 
the main thread is evil. Is stream support in NSXMLParser intended only for 
files?

        — F


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to