CurrencyConverterTutorial.pdf
CurrencyConverterTutorial.pdf
- Subject: CurrencyConverterTutorial.pdf
- From: Nobu <email@hidden>
- Date: Mon, 7 Jan 2002 13:29:33 +0900
Hello, everyone.
I'm beginner Cocoa Environment. (and English too)
First, I read Currency Converter Tutorial.pdf document.
I tried make application following the document.
But, I got Error and Warning Message
Why?
Please teach me!
---
Compiling ConverterController.m
^ warning: cannot find class (factory) method.
^ warning: return type for 'convertAmount:atRate:' defaults to id
(s) incompatible types in assignment
--
- (IBAction)convert:(id)sender
{
float rate, amt, total;
amt = [dollarField floatValue];
rate = [rateField floatValue];
---Error--> total = [Converter convertAmount: amt atRate: rate];
[totalField setFloatValue:total];
[rateField selectText:self];
}