Re: AppleScriptObjC framework error?
Re: AppleScriptObjC framework error?
- Subject: Re: AppleScriptObjC framework error?
- From: Dave <email@hidden>
- Date: Fri, 24 Dec 2010 03:58:23 -0600
Thanks for the tip. After further investigation I had already started using a more proper return value.
BTW, using NSUIntegerMax also fails with the message:
"unable to set return value because the AppleScript value <NSAppleEventDescriptor: 9.22337e+18> could not be coerced to type Q."
The ASOC bridge is clearly mishandling this edge case value for unsigned enums. It neither supplies it properly or returns it back to an unsigned enum C type.
-- Dave
On Dec 24, 2010, at 1:20 AM, Shane Stanley wrote:
> On 24/12/10 5:52 PM, "Dave" <email@hidden> wrote:
>
>> -- I am bypassing this problem by using an integer value of 0x7FFFFFFF.
>> --return current application's NSDragOperationEvery
>> return 2.147483647E+9
>
> The problem with that approach is that NSUIntegerMax varies depending on
> whether you're running 64-bit or 32-bit. You'd be better to use:
>
> return current application's NSUIntegerMax
>
> Having said that, I'm not sure under what circumstances you would want to
> return NSDragOperationEvery in the first place.
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
-- Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden