Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
December 17, 2017, 08:47:37 AM *
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: Multiple Fraction Classes  (Read 1914 times)
brittgriscom
Newbie
*
Posts: 29


Email
« on: May 13, 2010, 09:15:44 PM »

I have a fraction class in my FractionTest folder, and another one in my FractionCalculator folder. Are they updating each other? Xcode seems to know they both exist, because when I run Fraction Test, it tells me that there is a previous declaration of the fraction methods such as -(void) add:(Fraction *)f;

How do I straighten this out, so that I am only using one Fraction class, and I'm not having problems with 'previous declarations'?
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #1 on: May 14, 2010, 03:55:20 AM »

Xcode doesn't know about classes in other projects.  That error message is due to some other problem.   Make sure the methods are declared the same way in the interface and implementation sections (remember that one version of the add: method returned void and the other a Fraction object).

Cheers,

Steve Kochan
Logged
brittgriscom
Newbie
*
Posts: 29


Email
« Reply #2 on: May 14, 2010, 05:13:41 PM »

Xcode doesn't know about classes in other projects.  That error message is due to some other problem.   Make sure the methods are declared the same way in the interface and implementation sections (remember that one version of the add: method returned void and the other a Fraction object).

Cheers,

Steve Kochan

Thanks Steve.

You've been amazingly helpful, and I've said so in my Amazon review.
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #3 on: May 17, 2010, 12:36:10 PM »

Quote
You've been amazingly helpful, and I've said so in my Amazon review.

And thank you for the review.  It is much appreciated.

Cheers,

Steve
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.