I have a data loading operation that needs to be run off the main thread to avoid potential blocking issues. To do this, I use an NSOperationQueue and NSOperations.
One issue that has come up, however, is that one of the operations exists to spawn additional operations based on incoming information. Trying to solve this also solved some minor issues I had elsewhere, as the solution I hit upon was to give the NSOperation it's own queue for sub-tasks.
The problem is that as soon as 'main' exits, the NSOperation is going to be marked as 'finished', regardless of whether or not the sub-queue is finished processing; how do I override that behavior?