• 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: NSXMLParser in background thread crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSXMLParser in background thread crashing (From: "Justin R. Miller" <email@hidden>)
 >Re: NSXMLParser in background thread crashing (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Must remove submenu when dealloccing NSMenuItem?
  • Next by Date: Re: Bezier Text Container
  • Previous by thread: Re: NSXMLParser in background thread crashing
  • Next by thread: Re: NSXMLParser in background thread crashing
  • Index(es):
    • Date
    • Thread