Errata

Programming the iPhone User Experience

Errata for Programming the iPhone User Experience

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page pp 4, 5
Various

Chapter 1 has a few minor flaws that I would like to see corrected. On page 4 there is a listing of what the Foundation framework provides. It does include object wrappers for primitives, but NSInteger, NSFloat are *not* those wrappers.

NSInteger and NSFloat are typecast equivalents that normalize out int and float across different platforms so that we don't have a mess with things like uint32 vs int64 and casting around depending on platform type.

Additionally, NSString is a first class object in Objective-C, not a wrapper around a C string at all. You can generate NSStrings from C strings, and vice versa - but it's not at all a simple wrapper nor intended for use as such.

The wrappers in question (for Integer, Float, and Boolean) are the subclasses of NSValue that are described on the following page (page 5).

Anonymous  Aug 26, 2009