November 2013
Beginner
325 pages
9h 47m
English
When you add an object to a collection, the collection claims ownership of it. When you remove the object from the collection, the collection gives up ownership. This is true for NSMutableArray, NSMutableSet, and NSMutableDictionary. (An immutable collection also claims ownership of its objects, but the immutability of the collection means that all the objects in the collection are owned when the collection is created and disowned when the collection is deallocated.)
Read now
Unlock full access