I\'ve been looking for some concrete scenarios for when NSOperation
on the iPhone is an ideal tool to use in an application. To my understanding, this is a wrap
Here is just a very simple implementation but take time to read the tutorials to fully understand everything:
NSOperationQueue *queue = [NSOperationQueue new];
NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self
selector:@selector(methodToCall)
object:objectToPassToMethod];
[queue addOperation:operation];