Weekly bite-sized screencasts on iOS development.

There are 5 episodes with tag 'nsoperation'   Clear search

NSOperation Basics

Episode #175 | 17 minutes | published on 06/26/2015
Subscribers Only
In this episode we take a look at the basics of NSOperation, NSOperationQueue, starting from block operations and moving to custom NSOperation subclasses. We'll also see why it's important to make your operations thread safe.

Advanced NSOperations

Episode #180 | 14 minutes | published on 07/30/2015
Subscribers Only
In this episode, Ben continues exploring NSOperation-based architecture, this time writing operations that present UI for a login screen, load the Core Data stack, and operations that are composed of multiple lower-level operations.

NSOperation Dependencies

Episode #177 | 11 minutes | published on 07/09/2015
Subscribers Only
In this episode we discuss dependent NSOperations. Using dependencies you can queue up a bunch of jobs and they will be run in the correct order, having one provide the necessary state for the next one to run. In the example, we take the large Hubble image, scale it down to a more appropriate size, then apply a Core Image filter to it. Each operation is dependent on the one before it, yet they are all queued up at the same time.

File Downloads - Part 1

Episode #239 | 30 minutes | published on 10/06/2016
Subscribers Only
Downloading large files on iOS represents some unique challenges. Downloads should occur in the background, not confined to a particular view controller. They should be able to report progress on multiple screens, and should be robust enough to survive application suspension and failing network conditions, and respect the user's cellular data plan. In this episode we start a series on downloading large files that will cover all of the above concerns.

Asynchronous Operations

Episode #176 | 17 minutes | published on 07/03/2015
Subscribers Only
In this episode we examine the asynchronous (a.k.a concurrent) type of NSOperation where we are doing things that involve callback blocks or delegates.