October 2011
Intermediate to advanced
384 pages
5h 38m
English
Every programming language encourages a different set of design patterns. Understanding the common ones used throughout the Foundation framework makes understanding the framework as a whole, and writing Objective-C code, a lot easier.
This chapter provide an overview of some of the most common patterns in Objective-C. If you want to read more, you can find a much more detailed overview in Cocoa Design Patterns, by Erik M. Buck and Donald A. Yacktman (Addison-Wesley, 2009).

From: allocInit.m
One of the patterns you’ve probably already seen is the two-stage creation pattern. In traditional, ...
Read now
Unlock full access