Errata

Building Cocoa Applications: A Step by Step Guide

Errata for Building Cocoa Applications: A Step by Step Guide

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 128
Example 4-5

The second line of this example reads:
int main(int argc,char **argv)
It should read:
int main(int argc,char *argv)

Anonymous   
Printed
Page 233
Top of page, Step 2, referring to Controller.h

@interface Controller:Object

Anonymous    Mar 01, 2004
Printed
Page 307
Step 22

"disclusure triangle"

NOW READS:
"disclosure triangle"

Anonymous    Mar 01, 2004
Printed
Page 333
6th line of code in Step 16

path = [ [NSBundle mainBundle]
pathForAuxiliaryExecutable:@"Evaluator"];

Should be:

path = [ [NSBundle mainBundle]
pathForResource:@"Evaluator" ofType:@""];

Anonymous   
Printed
Page 368
Source codes under 3. and 4.

3.
- (init)

NOW READS:
- (id)init

4. All import sentences ARE NOW enclosed with "".
For example, not #import RTF.h but #import "RTF.h"

Anonymous    Mar 01, 2004
Printed
Page 383
Step 1 and Step 2

Both in step 1 and 2 the text commands you to edit the
non-existent file "MathController.m" file. Of course,
there is no MathController.m, and instead you should edit
the MathDocument.m file in both steps.

Anonymous   
Printed
Page 508
FROM READER: Code sample in step 13

GraphPaper's TrackGraphingView class adds a tracking rect to itself in its
initWithFrame method. A working tracking rect is not added to the TrackGraphingView
object, because (I assume) the object has not yet been unarchived from the nib file
when initWithFrame is called.

This does not affect the program's functionality, as a working tracking rect is added
when the graph method calls getFormAndScaleView. Nevertheless, this issue might cause
confusion when readers attempt to implement tracking rects in our own applications.

FROM AUTHOR:
We should remove the call in initWithFrame:

Anonymous