Open subdigital opened 3 years ago
originally written by Dave Green on 08/07/2015 22:32:50
Thank you great series of tutorials on NSOperations, really enjoyed running through all of the samples
originally written by subdigital on 08/08/2015 20:21:22
Glad you liked it!
originally written by aurrak on 01/21/2016 17:07:24
In the DownloadEpisodesOperation's execute method, instead of creating and adding a finalOperation with the purpose of invoking "self.finish()" to indicate completion.
Could we not use the importOperation completionBlock instead?
importOperation.completionBlock = {
self.finish()
}
originally written by subdigital on 01/24/2016 16:14:45
This would work, but imagine a scenario where you were waiting on multiple operations to be completed before the parent operation could be considered finished. In this scenario you'd add the appropriate dependencies on finalOperation and it would work as intended.
Written on 10/12/2017 18:18:43
URL: https://nsscreencast.com/episodes/180-advanced-nsoperations