July 2010
Beginner
416 pages
9h 51m
English
Chapter 1, “C, The Foundation of Objective C,” covered the basic C language control statements used for looping and branching: if,for, and while. This chapter examines how these statements are typically used in an Objective-C setting. It also covers some additional Objective-C looping constructs including the Fast Enumeration feature that is new with Objective-C 2.0. Finally (pardon the pun), it will cover Objective-C’s exception system.
if StatementsAs noted in Chapter 3, “An Introduction to Object-Oriented Programming,” Objective-C defines its own Boolean type, BOOL, and the constants YES and NO to represent true and false. A message expression that returns a BOOL can go into the condition part of an ...