Hi, I know I can create a separate thread in cocoa touch with the following code:
[NSThread detachNewThreadSelector:@selector(getEarthquakeData) toTarget:self withObject:nil];
How to go back to the process of my primary thread? I know I can do this from the delegate with this code:
[(id)[[UIApplication sharedApplication] delegate] performSelectorOnMainThread:@selector(addToEarthquakeList:) withObject:self.currentEarthquakeObject waitUntilDone:YES];
How would I do the above if the main thread was running in a controller and not in the delegate like above.
Thanks!