NSOperationQueue: Trouble understanding the order [duplicate]
This question already has answers here : NSOperationQueue serial FIFO queue (3 answers) Closed 5 years ago . I'm having trouble understanding the way NSOperationQueue works. Say I have: NSOperationQueue *queue = [[NSOperationQueue alloc] init]; queue.maxConcurrentOperationCount=1; [queue addOperationWithBlock:^{ [someObject someSelector]; }]; [queue addOperationWithBlock:^{ [someObject anotherSelector]; }]; The second block is being called even before the first block finishes - the opposite of what I want. I tried using – performSelectorOnMainThread:withObject:waitUntilDone: instead, but the