So, I m learning Objective C by this book. It is thought to be great and all. http://www.amazon.com/Programming-Objective-C-2-0-Stephen-Kochan/dp/0321566157/ref=sr_1_1?ie=UTF8&qid=1303332025&sr=8-1
But after installing new Xcode (version 4) when i tried to finish the exercise form the book (3.2) it gives me like 10 compilation errors that I can t identify. What can I do about this? Getting xcode 3 is not really an option. For example there are many semantic errors that keep saying undeclared identifiers pointing to empty spaces...
also it isn t accepting this line of code:
Fraction *myFraction;
I got class myFraction, what s wrong with this one?
Also there is method declaration in this class
- (void) setNum : (int) n;
it says, expecting member name or ; after declaration specifiers. What can this mean? There already is a semicolon there.