Re: NSXMLParser in background thread crashing
Re: NSXMLParser in background thread crashing
- Subject: Re: NSXMLParser in background thread crashing
- From: "Justin R. Miller" <email@hidden>
- Date: Thu, 22 Feb 2007 10:14:01 -0500
On Feb 22, 2007, at 9:59 AM, Jim Correia wrote:
I don't see it mentioned in the class doc for NSXMLParser, or in
the Cocoa Thread Safety docs, that NSXMLParser is thread safe.
Absent any reference that it is (which I may have missed), you
cannot assume that it can be safely used anywhere but on the main
thread.
Thanks, Jim. That makes sense -- I'm currently not turning up any
indication either, and I should have looked for that earlier.
That said, and while I'm still researching that, what would be a good
way to accomplish a 5-10 (or more) second parse without blocking the
UI thread? Whether event-driven (NSXMLParser) or tree-based
(NSXMLDocument), the wait is pretty unavoidable.
--
Justin R. Miller
Code Sorcery Workshop
http://codesorcery.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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