Hi, there! I have defined a protocol like this:
@protocol RSSItemParserDelegate <NSObject>
- (void)RSSItemParser:(RSSItemParser *)parser
didEndParsingSuccesfully:(BOOL)success;
@end
And I am calling this method when some parsing is finished, on success YES and on failure NO, like this:
[delegate RSSItemParser:self didEndProcessSuccesfully:NO];
But I would like it to run in the main thread asynchronously. How can I do this?
I think performSelectorOnMainThread:withObject:waitUntilDone:
would work with a solely argument method, but how about methods with two arguments like mines?
specially when working with AVFoundation and CoreVideo there are a lot of delegates methods that have more than 2 arguments, I wonder how are they called.
Thanks
Ignacio