Here's a thought: I'll accept contributions (code, not $$$) for the even-numbered exercises via email, provide comments and give you credit if I use it. (Does that sound too desperate?)
Nope! I would love that challenge, as I am sure will others.
That's great! If anyone does submit answers, be sure to only use features of the language that have been taught up to that point in the book.
I have worked through my copy of the 2nd Edition (the first printing run) and, alas, the code for the final project (Fraction_Calculator) does not work as given in the book.
There is still some weird behavior I want to track down. When you first start the program (prior to doing anything else), if you enter a single number, such as 5 into the calculator and press the = button, the program crashes out to gdb with the following errors:
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
If you do the same thing after doing a normal fraction calculation, you get a line such as 5 = 5, which is correct.
Marc
I tried hard to carefully read through the pages from the publisher, but it's not possible to catch everything. My first edition had over 100 typos! Many typos get introduced in conversion of the Word files to their internal publishing software (don't know what they're using now). I believe this 2nd edition is cleaner, but I've noticed the typos are starting to get recognized.
Stephen,
Thank you for the prompt reply!!! I applied your corrections, and there were still several more typos, but I list them below:
p. 480 Program 21.2 Fraction_CalculatorViewController.h
Requires @end at the end of the code
p. 481 Program 21.2 Fraction_CalculatorViewController.m
Add the two @synthesize lines below
#import "Fraction_CalculatorViewController.h"
@implementation Fraction_CalculatorViewController
@synthesize display;
@synthesize displayString;
-(void) viewDidLoad {
I was then able to get the program to run. There is still some weird behavior I want to track down. When you first start the program (prior to doing anything else), if you enter a single number, such as 5 into the calculator and press the = button, the program crashes out to gdb with the following errors:
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
If you do the same thing after doing a normal fraction calculation, you get a line such as 5 = 5, which is correct.
Marc
I will post an errata page soon...probably within the week.
Is there enough new stuff and is it Mac-centric enough that I should buy the new edition and write off the money spent on the first one?
Hi Jeff,
I wouldn't invest in the second edition. Work through the first edition you have then go to Apple's website to read up on the changes added to Objective-C 2.0 (Don't have the link to the document handy).
You can also ask questions about anything related to the first edition or about Objective-C in general on the forum I set up for the book at classroomM.com/objective-c.
As for my C book, it's not Mac-specific at all. It's a general tutorial on C and is fully up-to-date with respect to the language. Since it's not a Mac-oriented book, there's really no instructions on using Xcode, Mac OS X, etc.
Good luck! Hope this helps.
Cheers,
Steve Kochan
I just bought the book (Objective-C by Stephen Kochan). I do not
yet have a Mac, but I'm planning on getting one so I can try some iPhone apps.
In the meantime, I wanted to run the fraction calculator on my iPod Touch.
Is that app available on the web somewhere? How about the other code in
the book. Is it available for download somewhere?
Sam Rhoads
Hi,
I just started reading the book. My question is do you guys think I should do every exercise, or is it enough if I start doing them in Section II of the book (p. ~300)? I am a computer scientist so I know some programming languages - including Smalltalk. I definitely plan on reading the whole thing - just don't really want to do all the exercises.
Whats your opinion?
Henrik
though it might be helpful to post the "Corrections of 1st Printing" .PDF here...
I'm not sure what you mean by questions. I assume you mean answers to exercises? No, the code and the answers to the exercises haven't been posted yet. I just got the book done before the holidays, so now I need to sit down and actually work out the answers to the even-numbered exercises, which I didn't even do for the first edition. It's quite a time consuming task (as I was writing some of the exercises I was grimacing at the thought of having to answer a couple of the harder ones myself). It's my top priority. I'm hoping to set up a web site shortly (or use my mac home page as I'm doing now) for errata, answers to exercises, and the source code from the book.
Feel free to pester me!
Here's a thought: I'll accept contributions (code, not $$$) for the even-numbered exercises via email, provide comments and give you credit if I use it. (Does that sound too desperate?)