Errata

iPhone Open Application Development

Errata for iPhone Open Application Development

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Printed
Page Examples
All Examples

In this book, I erroneously use the following code to determine whether an object has been instantiated:

if ((self == [ super initWithFrame: rect ]) != nil) {

I later realized that this is incorrect. The proper way to do this is as follows:

self = [ super initWithFrame: rect ];
if (nil != self) {

Generally this does not present any problems, but is a good idea to change this in your projects, in the event that future
versions are less forgiving.

Anonymous