Asynchronous methods in NSOperation

Below is a full example. In your subclass, after your async method completes, call [self completeOperation] to transition to the finished state. @interface AsynchronousOperation() // ‘executing’ and ‘finished’ exist in NSOperation, but are readonly @property (atomic, assign) BOOL _executing; @property (atomic, assign) BOOL _finished; @end @implementation AsynchronousOperation – (void) start; { if ([self isCancelled]) { … Read more