Something else for the errata


On page 347 at the code near the top of the page the following does not produce the correct output:

// Occasionally, 'errorString' is NULL if (errorString != NULL) { *errorString = [NSString stringWithFormat:@" is not a color", string];

The error message does not have the color listed, “string” is not included; the fix looks like this:

// Occasionally, 'errorString' is NULL if (errorString != NULL) { *errorString = [NSString stringWithFormat:@"%@ is not a color", string];

As a side note, the Xcode error checker has no problem with assigning an argument in the original even though there is nothing in the format area to accept the argument, seems like a bug in Xcode also.


That surprised me too - but no program is flawless even not the ones of Apple :wink:

btw., I would be interested in to make the color update visible when I press return/enter - how is this possible ?