I have a NSXMLParser in a backgroound thread. Does it calls its delagtes methods in a background?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, but this is easy to check. Just put a breakpoint on your delegate implementation and then look to see which thread is calling it by looking in the threads/stacks inspector.
If you need the call to go back to the UI thread, look at this
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/performSelector:onThread:withObject:waitUntilDone: