Hey all,
I bought the Kochan book but I am having trouble with this code:
http://classroomm.com/objective-c/index.php?topic=683.0
It is for chp3 3.1 When I try to compile it I get 3962 errors of:
error: expected identifier or '(' before '-' token
They are all on:
-(void) print;
-(void) setNumerator: (int) n;
-(void) setDenominator: (int) d;
Is something wrong with my xcode? I typed it in just like the book has listed and also tried a copy / paste from that site.
Any ideas?
My book is not the 2.0 version but I have the pdf of the 2.0 version. It looks like there are a lot of differences between the two. (Especially on this section) My book has it using the Object.h header and nothing about NSObject or NSLog. So I will go ahead and order the 2.0 book like everyone recommended.
I bought the Kochan book but I am having trouble with this code:
http://classroomm.com/objective-c/index.php?topic=683.0
It is for chp3 3.1 When I try to compile it I get 3962 errors of:
error: expected identifier or '(' before '-' token
They are all on:
-(void) print;
-(void) setNumerator: (int) n;
-(void) setDenominator: (int) d;
Is something wrong with my xcode? I typed it in just like the book has listed and also tried a copy / paste from that site.
Any ideas?
My book is not the 2.0 version but I have the pdf of the 2.0 version. It looks like there are a lot of differences between the two. (Especially on this section) My book has it using the Object.h header and nothing about NSObject or NSLog. So I will go ahead and order the 2.0 book like everyone recommended.