Chapter 22 Errata


#1

Error in Chapter 19 (where the Categories code starts).
Page 279 in BigLetterView.m

  • (id)initWithFrame:(NSRect)frame
    {
    .
    .
    string = @" “; // note the space
    // should be string = @”"; no space
    // the space breaks the Category method - (NSString *)bnr_firstLetter;
    // in Chapter 22 page 308
    .
    }

Minor detail but that’s what I get for following the sample code exactly.


#2

It is the knowledge new of me. Me was learned it.