Amazon.com Widgets Multiple Fraction Classes
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 17, 2014, 05:42:44 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Chapter Study
| | |-+ Chapter 21 - Writing iPhone Applications
| | | |-+ Multiple Fraction Classes
Pages: [1] Go Down
Print
Author Topic: Multiple Fraction Classes (Read 1189 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:



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.