Re: AppleScript not sending my Cocoa app proper floats on Intel
Re: AppleScript not sending my Cocoa app proper floats on Intel
- Subject: Re: AppleScript not sending my Cocoa app proper floats on Intel
- From: Ron Fleckner <email@hidden>
- Date: Tue, 26 Jun 2007 16:36:21 +1000
For anybody who's followed this thread, and for future searchers, the
answer is to NOT use float as a type when passing a real number from
AppleScript to the target app on Intel machines (ie, not ever), but
to use double. So, in my case, I changed my accessors and
declaration from:
float speed;
- (float)speed;
- (void)setSpeed:(float)aFloat;
to
double speed;
- (double)speed;
- (void)setSpeed:(double)aDouble;
Many, many thanks to Matt Neuburg, who nailed this in one.
Ron
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden