Errata

Cocoa in a Nutshell

Errata for Cocoa in a Nutshell

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 20
3rd paragraph

NSString *subStr = [str3 substringFromIndex7];

should be

NSString *subStr = [str3 substringFromIndex:7];

Anonymous   
Printed
Page 21
Example 2-3

NSArray *fields = [str componentsSeperatedByString:@":"];

should read:

NSArray *fields = [str componentsSeparatedByString:@":"];

Anonymous   
Printed
Page 48
4th paragraph

defs = [NSDictionary dictionaryithContentsOfFile:prefsFile];

should be

defs = [NSDictionary dictionaryWithContentsOfFile:prefsFile];

Anonymous   
Printed
Page 54
last paragraph

"distributed objects system, discussed at the end of this chapter"
should read:
"distributed objects system, discussed in chapter 7"

Anonymous   
Printed
Page 91
Fig. 4-9

The text in the drawings should read miter, not meter (two places).

Anonymous   
Printed
Page 124
1st full paragraph on the page

The paragraph begins "Initialize an NSSocketPort to connect to a remote socket with
the method initWithRemoteTCPPort:host:."

The method name is incorrect. The sentence should be rewritten as:

"Initialize an NSSocketPort to connect to a remote socket with the method
initRemoteWithTCPPort:host:."

Anonymous   
Printed
Page 126
Example 6-8

nc = [NSNotificationCenter defaultNotificationCenter];

should be

nc = [NSNotificationCenter defaultCenter];

Anonymous   
Printed
Page 127
Example 6-9

nc = [NSNotificationCenter defaultNotificationCenter];

should be

nc = [NSNotificationCenter defaultCenter];

Anonymous   
Printed
Page 517
3rd to last paragraph

In addition to /Cocoa/ there are several more books published by O'Reilly that are worth mentioning:

and then it goes on to list books **NOT** published by O'Reilly. It should say:

"In addition to /Cocoa/ there are several more books not published by O'Reilly that are worth mentioning:"

Anonymous