Global Variables
Global Variables
- Subject: Global Variables
- From: R T <email@hidden>
- Date: Fri, 8 Apr 2005 13:10:01 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Given this class...
#import <Foundation/Foundation.h>
@interface Core : NSObject {
@public
float CSAmt;
}
- (float) CSAmt;
- (void) setCSAmt:(float)aAmt;
@end
I want to use setCSAmt from another class (with a
textField.
I tried this...
#import "MyPixelFinder.h"
#import "Core.h"
@implementation MyPixelFinder
- (IBAction)setAmtNew:(id)sender
{
float aFlt;
aFlt = [AmtField floatValue];
extern CSAmt = setFloatValue:aFlt;
}
@end
but I get the warning that.....
....type defaults to `int' in declaration of `CSAmt'.
Thanks
Rick T.
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
_______________________________________________
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