Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
November 23, 2017, 03:27:45 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: Problems implementing initial program in Ch. 7  (Read 1210 times)
JRIH
Newbie
*
Posts: 1


« on: December 04, 2016, 06:49:37 PM »

Using Objective-C 6th edition and Xcode 6.3.
When I try to type in the initial program, into the different files: main.m Fraction.h and Fraction.m, I get error messages all over the place.
The Fraction.m file is actually named NSObject+Fraction.m. and inside it says to #import "NSObject+Fraction.h".
in main.m, when I put in Fraction *myfraction = [[Fraction alloc] init];, i get a warning that says "Fraction is undeclared".  I did put in the entire program before looking at the warnings.
These are just a couple of examples of many.
I followed the chapter 2 and Chapter 7 instructions, but nothing is going right.  I hope you can help me and let me know any further information that you may need.

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 classroomM.com. All rights reserved.