On Sat, Oct 20, 2012 at 2:55 PM, Jonathan Hull wrote:
> You probably want to be using -addDependency:
>
> -waitUntilAllOperationsAreFinished just blocks the thread it is called on
> until the receiver finishes (thus if you call it on the same thread as the
> queue, it will block it forever).
Th
You probably want to be using -addDependency:
-waitUntilAllOperationsAreFinished just blocks the thread it is called on until
the receiver finishes (thus if you call it on the same thread as the queue, it
will block it forever).
If you need to do something after the operation is done which is n
On Oct 20, 2012, at 1:15 PM, Koen van der Drift
wrote:
>
> On Oct 20, 2012, at 12:53 PM, Gary L. Wade
> wrote:
>
>> At the time when you call waitUntilAllOperationsAreFinished, no operations
>> have been added, so there's nothing to wait on. Add the operation to the
>> queue first and the
On Oct 20, 2012, at 12:53 PM, Gary L. Wade wrote:
> At the time when you call waitUntilAllOperationsAreFinished, no operations
> have been added, so there's nothing to wait on. Add the operation to the
> queue first and then call wait.
> --
I tried that too, but then it just stays in the oper
At the time when you call waitUntilAllOperationsAreFinished, no operations have
been added, so there's nothing to wait on. Add the operation to the queue first
and then call wait.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
___
Coc
I am trying to understand how to wait for an NSOperation to complete, for
example:
NSOperationQueue *opQueue = [[NSOperationQueue alloc] init];
ImportOperation *importOp = [[ImportOperation alloc] initWithArray:
anArray];
NSLog@"start import");
[opQueue waitUntilAllOperati