• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Global Variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Global Variables
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Inline asm - Label redefintion
  • Next by Date: Re: Global Variables
  • Previous by thread: Inline asm - Label redefintion
  • Next by thread: Re: Global Variables
  • Index(es):
    • Date
    • Thread