small medium large xlarge

Errata for Cocoa Programming

 

The latest version of the book is P1.0a, released over 6 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0a (07-Jul-10)
#44001
PDF page: 16
Typo in paragraph 2: "You’ll be tempted to hold on the way you used to do things." should be "You’ll be tempted to hold on to the way you used to do t...more...
  • Reported in: P1.0 (01-May-10)
#43041
PDF page: 17
"They are unfamiliar, so your first instincts won’t always be right. but in no time you’ll be typing in what you assume the method" Shouldn't the f...more...
  • Reported in: B1.15 (08-Apr-10)
#42718
PDF page: 21
In "Starting Fresh", the sentence "These problems manifest themselves in different ways but are often surface when dealing with nib files." should be "...more...
  • Reported in: P1.0a (05-Feb-11)
#46363
PDF page: 40
The book states: "In the top-left corner of your Xcode window, you will see the warning that the application is TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION...more...
  • Reported in: P1.0a (17-May-12)
#49350
PDF page: 41
Not so much an error, but the later versions of Xcode (mine is 4.2) don't have Add > Existing Frameworks. This describes this is the new gui steps fo...more...
  • Reported in: P1.0 (28-Apr-10)
#43012
PDF page: 53
The text reads: --- The return type of goBack is BOOL. You can see by the Discussion section that in Objective-C the two boolean values are YES an...more...
  • Reported in: P1.0 (28-Apr-10)
#43013
PDF page: 54
The footnote states that the return type of goBack: is IBAction, but the documentation seems to clearly indicate that it's void. This could be a qu...more...
  • Reported in: P1.0 (02-Aug-10)
#44387
Paper page: 58

Last paragraph, 2nd sentence starts "I'll add code some of" should be "I'll add some of".
--Pete Siemsen

  • Reported in: P1.0 (15-Nov-10)
#45613
Paper page: 69
This line in the sample code under section 4.10 'Logging Objects' produces 2 errors '_LINE_', and '_FILE_' not defined: NSLog(@"This occurred in %@ ...more...
  • Reported in: B1.15 (13-Apr-10)
#42777
PDF page: 87

"The return type ofinitWithName: is id." There should be a space after "of".--Paul Matchen

  • Reported in: B1.15 (13-Apr-10)
#42778
PDF page: 88

In footnote 2: "We’ll look at theIBAction return type in Chapter 7" there should be a space before "IBAction".--Paul Matchen

  • Reported in: P1.0a (15-Aug-10)
#44626
PDF page: 90
In section 5.3, the setter method initially reads as "-(void) setName:(NSString *) name;" while it should be "-(void) setName:(NSString *)newName;". ...more...
  • Reported in: P1.0 (03-May-10)
#43046
PDF page: 101
The code in Hello World 16: -(void)applicationDidFinishLaunching:(NSNotification *)aNotification { Greeter *greeter = [self greeterFor:@"Maggie"...more...
  • Reported in: P1.0a (17-Jan-11)
#46256
PDF page: 109
Omission: A common error is to leave the dropdown on the topleft with "Device" selected. Any unregistered developers would then see an error. It would...more...
  • Reported in: P1.0 (03-May-10)
#43047
PDF page: 112
Text in penultimate sentence before section 7 - "That is enough information for us to find the leak, although if you double-click the line reporting ...more...
  • Reported in: P1.0 (03-May-10)
#43050
PDF page: 114
First sentence on page: "Choose the menu item Build > Build & Debug. You should see a boilerplate message in your Console window followed by somet...more...
  • Reported in: P1.0 (03-May-10)
#43054
PDF page: 114
If I use the downloaded code for Flashlight4 I get the following response minus the last line: "Greeter name: Maggie created: 2009-09-18 14:24:43 -...more...
  • Reported in: P1.0 (09-May-10)
#43157
PDF page: 126

Second paragraph from the bottom. There is a 'space' missing before IBOutlet.--Tony Daly

  • Reported in: B1.15 (15-Apr-10)
#42792
PDF page: 168
For the following code: - (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame { [[sender window] ...more...
  • Reported in: P1.0 (04-May-10)
#43088
PDF page: 168
Doesn't the line of code: "[sender window] setTitle:title]" break the author's own injunction to use dot notation? Should it not be: "[sender.wind...more...
  • Reported in: P1.0 (28-Jun-11)
#47230
Paper page: 171
The sentence in footnote 5 has an agreement problem: "Other methods we often use ... is ..." should be "Other methods we often use ... are ..."--Ramse...more...
  • Reported in: P1.0 (10-May-10)
#43168
PDF page: 178
The paragraph preceding Section 10.3. contains the sentence: "If you click in another area of the screen, the keyboard is dismissed, but the next tim...more...
  • Reported in: P1.0 (15-Jan-11)
#46245
Paper page: 195
In section 12.3, "The delegate was a WindowHelper object that extended NSWindow" should be replaced by "The delegate was a WindowHelper object that ex...more...
  • Reported in: P1.0 (18-Feb-11)
#46418
PDF page: 205
The 3rd footnote states an Objective-C protocol is similar to an Interface in Java. If you implement a Java Interface, you have to implement all its ...more...
  • Reported in: P1.0a (17-May-10)
#43276
PDF page: 211
The code for this section contains an instance of ActivityController ac. This is used as an outlet from the AppDelegate but it serves no apparent pur...more...
  • Reported in: P1.0a (14-Feb-11)
#46403
PDF page: 212
Paper page: 202
Solution of the problem: 212 202 #46183: Error or not error? … Solution: Because OS 10.5.8 does not support Xcode 3.2.5, I use running Xcode on a...more...
  • Reported in: P1.0 (05-Jan-11)
#46183
PDF page: 212
Paper page: 202
Error or not error? - You are writing: "Click Build & Run, and your application should run exactly as before. We’re now receiving notifications wh...more...
  • Reported in: P1.0a (18-May-10)
#43307
PDF page: 228
The download HelloApplication18 contains currentApp in HelloApplicationAppDelegate, it appears to serve no purpose and is confusing. If it does serve...more...
  • Reported in: P1.0 (07-Jan-11)
#46200
Paper page: 232
After the following of chapter 14 - Multiple Nibs, i've discovered that it is possible to resize the window when it runs. When you start resizing the ...more...
  • Reported in: P1.0a (18-May-10)
#43306
PDF page: 235

Either the last word on the page should be NSTextField not NSTextView or the HelloApplication18 download is in error.--Vic Strachan

  • Reported in: B1.15 (08-Apr-10)
#42717
PDF page: 252
You do not see this "default" look until you add the following line to IconViewController.m: ((IconView *)self.view).appName = app.localizedName; ...more...
  • Reported in: P1.0 (27-Aug-10)
#44730
Paper page: 282
You suggest typing in the short plist file (or constructing it programmatically). It is much easier to use the Property List Editor which comes in t...more...
  • Reported in: P1.0 (19-Feb-12)
#48770
Paper page: 283

In the loadView method, I found I needed to replace
ofType:nil
with
ofType @"plist"
(Xcode 4, OS Lion)--Alex

  • Reported in: P1.0 (19-Feb-12)
#48771
Paper page: 283

In the loadView method, I found I needed to replace
ofType:nil
with
ofType: @"plist"
(Xcode 4, OS Lion)--Alex

  • Reported in: P1.0a (19-Nov-11)
#47966
Paper page: 316
"I've chosen to update the display with the new value that I pull off the "change" dictionary. Line 5 reads: [self updateDisplay:[object valueFor...more...
  • Reported in: P1.0 (03-Sep-10)
#44852
Paper page: 321
Here is another way to solve the problem of several observations: use the context variable. In Display.m, awakeFromNib, use [counter addObserver: self...more...