• 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
Re: AppleScript not sending my Cocoa app proper floats on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Next by Date: Play a song with QTMovie
  • Previous by thread: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Next by thread: Re: WebKit and POST requests (now WSDL and WSMakeStubs)
  • Index(es):
    • Date
    • Thread