Re: Feh. Obj-C syntax question
Re: Feh. Obj-C syntax question
- Subject: Re: Feh. Obj-C syntax question
- From: Antonio Nunes <email@hidden>
- Date: Thu, 8 Nov 2007 00:10:02 +0000
On 7 Nov 2007, at 23:42, Rick Mann wrote:
---
#import <Cocoa/Cocoa.h>
@interface
Converter : NSObject
{
@property(readwrite) float mSourceCurrencyAmount;
@property(readwrite) float mRate;
}
- (float) convertCurrency;
@end
---
Change that to:
---
#import <Cocoa/Cocoa.h>
@interface
Converter : NSObject
{
float mSourceCurrencyAmount;
float mRate;
}
- (float) convertCurrency;
@property(readwrite) float mSourceCurrencyAmount;
@property(readwrite) float mRate;
@end
---
And have another look at the Obj-C 2.0 documentation on how to declare
properties.
-António
-----------------------------------------------------------
Some things have to be believed to be seen.
--Ralph Hodgson
-----------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden