• 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: 'kASAppleScriptSuite' undeclared
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: 'kASAppleScriptSuite' undeclared
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: 'kASAppleScriptSuite' undeclared (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Bound table not getting sorted when cell content is modified
  • Next by Date: Re: Toolbar item with popup menu
  • Previous by thread: Re: 'kASAppleScriptSuite' undeclared
  • Next by thread: Re: 'kASAppleScriptSuite' undeclared
  • Index(es):
    • Date
    • Thread