November 2012
Beginner
480 pages
12h 18m
English
This chapter covers three small items that are new with Mountain Lion and Xcode 4.4. They are enums with a fixed underlying type and some type checking, the elimination of the need for forward declarations for methods in the @implementation section of a class, and a new piece of documentation that will help you keep track of when new Objective-C features were added to the language and what versions of OS X and iOS support those new features.
Standard C language enumeration constants or enums (see Chapter 1, “C, the Foundation of Objective-C”) are a way of giving human-readable names to a set of integer constants.
typedef enum{ soup, pasta, chicken, cake} foods;...foods mainCourse ...
Read now
Unlock full access