November 2012
Beginner
480 pages
12h 18m
English
With the introduction of Automatic Reference Counting in the spring of 2011, Apple has begun referring to the traditional Objective-C reference counting system as manual reference counting. For the sake of brevity I will use the term reference counting to refer to the manual system and the term ARC to refer to Automatic Reference Counting. This chapter covers manual reference counting.
Reference counting is very simple in principle. Each object stores a count, called the reference count or retain count, of the other objects that are using it. When you first create an object using alloc, its retain count is one. You own the object. When you no longer need the object, you indicate that you are finished ...
Read now
Unlock full access