PSA: Don't start a second NSXMLParser on the same thread where another NSXMLParser is already running, or you will have a bad time.
-
-
@boredzo So all bets are off if you're using GCD and don't know the actual thread? Is NSXMLDocument safe?0 replies 0 retweets 0 likes -
@mjtsai You can use a serial queue, but not concurrent, for that reason. NSXMLDoc/Element: Probably the same story; haven't looked deeply.0 replies 0 retweets 0 likes -
@mjtsai Actually, concurrent may be fine. Not like GCD is going to call you twice at the same time on the same thread.0 replies 0 retweets 0 likes -
@boredzo I was thinking of long-lived objects (e.g. documents) that you call methods on.0 replies 0 retweets 0 likes -
@mjtsai NSXMLDocument objects should be fine. It's parsers you don't want colliding.0 replies 0 retweets 0 likes
@boredzo Thanks for clarifying. That makes my life much easier, like it was a few hours ago. :-)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Petrifying Horror
Michael Tsai