Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Currency Converter Tutorial Problems



Hi Alex,

On Wed, 20 Oct 2004 22:58:30 -0400, Alex kadis wrote:
> /Users/(MY_UN)/Projects/CurrencyConverter/ConverterController.m:2:
> /Users/(MY_UN)/Projects/CurrencyConverter/converter.h:7: error: parse
> error before '-' token

Check your code carefully - this error is always caused by typo errors in your code, in my experience. Make sure you have not forgotten the semicolon at the end of each statement. Most likely just before line 7 in converter.h.

What you'll probably find is that once you fix that typo, the following errors will disappear as well, as the compiler will then be able to parse your files properly.

> /Users/(MY_UN)/Projects/CurrencyConverter/ConverterController.m: In
> function `-[ConverterController convert:]':
> /Users/(MY_UN)/Projects/CurrencyConverter/ConverterController.m:12:
> warning: `converter' may not respond to `+convertAmount:atRate:'
> /Users/(MY_UN)/Projects/CurrencyConverter/ConverterController.m:12:
> warning: cannot find method `+convertAmount:atRate:'; return type `id'
> assumed
> /Users/(MY_UN)/Projects/CurrencyConverter/ConverterController.m:12:
> error: incompatible types in assignment

Regards

Alex
---- ----- ---- ----- ---- ----- ---- ----- ---- -----

Alex Clarke
Designer | Technician

PowerMax Computers | Lismore
Apple Certified Desktop Technician
ABN: 73 817 650 349

16 Allen St Lismore NSW 2480 Australia

Ph: 0266 224 996
M: 0413119455

email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Currency Converter Tutorial Problems (From: Alex kadis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.