18. A Few More Things

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.

Enums with a Fixed Underlying Type

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 ...

Get Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition 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.