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: Donald Hall <email@hidden>
- Date: Mon, 25 Jun 2007 23:06:45 -0600
I would bet you are running into an endian issue. AppleScript uses
big endian on both platforms. Is there a way to force your program to
interpret the data it receives as big endian?
I had a similar problem with the Script Timer log file, which is a
Unicode text file, fed by an AppleScript application. Everything was
fine until I changed and resaved the file in a Cocoa program on an
Intel Mac. After that it was gibberish. I had to force the program to
interpret the data in the file as big endian. (In my case the string
encoding had to be set to "kCFStringEncodingUTF16BE".)
Hope that helps,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
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