Re: 'kASAppleScriptSuite' undeclared
Re: 'kASAppleScriptSuite' undeclared
- Subject: Re: 'kASAppleScriptSuite' undeclared
- From: Michael Tsai <email@hidden>
- Date: Wed, 3 Oct 2007 11:51:05 -0400
On Oct 3, 2007, at 11:27 AM, Matt Neuburg wrote:
Four-char codes don't have endian problems so long as you treat them
as numbers.
You might be using the phrase "treat them as numbers" in some way
that is
unknown to me. I can certainly attest from experience that code
that treats
four-char codes as four-char codes (i.e. a literal in single-
quotes) can
have endian problems.
A four-char code literal is just another way to type an integer, like
using hex notation. You can type it in your code, assign it to a
variable, pass it as a parameter, etc. The endianness only matters if
you try to treat it as something other than a number, e.g. if you
stuff it into a char[] or NSData. And in those cases the issues would
be the same whether you used kASAppleScriptSuite or 'ascr'--or, for
that matter, NSMacOSRomanStringEncoding or 30.
--Michael
_______________________________________________
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