Re: 'kASAppleScriptSuite' undeclared
Re: 'kASAppleScriptSuite' undeclared
- Subject: Re: 'kASAppleScriptSuite' undeclared
- From: Matt Neuburg <email@hidden>
- Date: Tue, 02 Oct 2007 10:29:24 -0700
- Thread-topic: 'kASAppleScriptSuite' undeclared
On Sun, 30 Sep 2007 16:35:48 -0400, Paul Bruneau
<email@hidden> said:
>On Sep 30, 2007, at 4:07 PM, Matt Neuburg wrote:
>
>> Why not just link against Carbon?
>
>Because those lines solved my problem, and I didn't need any other
>parts of Carbon, and besides I didn't know that linking against
>Carbon would solve it, and finally, I don't know how to link against
>Carbon.
My question was what we call "rhetorical". I was not literally asking *you*
why *you* didn't do it. I was suggesting politely (to you and to those that
I thought were giving you rather peculiar advice) that it might be a better
way. I was *inviting* you to consider linking against Carbon instead. A more
brusque alternative might have been to say "It's better and more proper just
to link against Carbon", but I was trying to be polite.
The method that you used is actually quite dangerous, especially when using
AppleScript; many of those literal four-character codes such as 'ascr' can
turn out to be incorrect on an Intel machine (though I do not know whether
that one, in particular, would turn out to be so). Linking to Carbon and
using the global name of the constant is the Right Way, and solves that
problem. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
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