Chapter 4
Objective-C Language Features
Now that we have covered the Foundation framework in Chapter 3, you should be familiar with reading Objective-C code and should have an intuitive mental model of how the runtime operates. This chapter takes a closer look at the language and its semantics; it breaks that mental model down from the intuition you’ve developed and presents the rules that form the mechanics of Objective-C.
Strong and Weak References
A large part of writing Objective-C is managing the references that executing code holds to objects, as well as the references objects hold to one another. Previous to ARC, Objective-C used manual memory management on iOS and, optionally, garbage collection on OS X. Both of these approaches ...
Get Beginning Objective-C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.