Get notification when NSOperationQueue finishes all tasks
Posted
by porneL
on Stack Overflow
See other posts from Stack Overflow
or by porneL
Published on 2009-06-26T13:00:14Z
Indexed on
2010/04/17
4:03 UTC
Read the original article
Hit count: 258
NSOperationQueue
has waitUntilAllOperationsAreFinished
, but I don't want to wait synchronously for it. I just want to hide progress indicator in UI when queue finishes.
What's the best way to accomplish this?
I can't send notifications from my NSOperation
s, because I don't know which one is going to be last, and [queue operations]
might not be empty yet (or worse - repopulated) when notification is received.
© Stack Overflow or respective owner