• 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: Matt Neuburg <email@hidden>
  • Date: Mon, 25 Jun 2007 23:13:12 -0700
  • Thread-topic: AppleScript not sending my Cocoa app proper floats on Intel

On Tue, 26 Jun 2007 09:01:25 +1000, Ron Fleckner
<email@hidden> said:
>
>On 26/06/2007, at 2:46 AM, I. Savant wrote:
>
>> On 6/24/07, Ron Fleckner <email@hidden> wrote:
>>> A user with a MacBook Pro reports that setting a float value via
>>> AppleScript in my app doesn't work as advertised.  It works on our
>>> PPC Macs at home.  We have no Intel Macs here to test on.
>>
>>  Just as food for thought: on an Intel machine, I discovered methods
>> with primitive arguments would behave erratically if I forgot to
>> declare them in the interface. Maybe your related method(s) have the
>> same issue?
>>
>> --
>> I.S.
>
>Thanks for the thought, but no, they are declared in the interface.
>I think Cocoa Scripting doesn't work at all if you don't have KVC
>compliant methods.

Just to follow up, Ron quoted some of his code at me and it involved the
word "float". There's a known behavior (some might call it a bug) where if
you declare a setter's argument "float" instead of "double", values pass
incorrectly to the setter in Cocoa Scripting on an Intel machine. I've
suggested he change "float" to "double" everywhere and test on Intel again.
We shall see...

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

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: Re: Core data accessors for structs
  • Previous by thread: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Next by thread: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Index(es):
    • Date
    • Thread