• 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
To get machine type (ppc, intel)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To get machine type (ppc, intel)


  • Subject: To get machine type (ppc, intel)
  • From: Nick Rogers <email@hidden>
  • Date: Wed, 19 Mar 2008 19:44:50 +0530

Hi,
In my app I'm reading raw bytes from the file.
So to get a integer's correct value, I'll need to swap bytes according to the machine (big or little-endian type), I guess.


Is there a way so that I can know, if its a intel or ppc machine, that my app is running on?

Thanks,
Nick
_______________________________________________

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: To get machine type (ppc, intel)
      • From: "Sherm Pendley" <email@hidden>
    • Re: To get machine type (ppc, intel)
      • From: Sam McDonald <email@hidden>
    • Re: To get machine type (ppc, intel)
      • From: Laurent Cerveau <email@hidden>
    • Re: To get machine type (ppc, intel)
      • From: Sam McDonald <email@hidden>
    • Re: To get machine type (ppc, intel)
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Downloading via FTP and loading images in a NSTableView
  • Next by Date: Re: To get machine type (ppc, intel)
  • Previous by thread: Re: NSLocale: "<city name> <zip code>" vs. "<zip code> <city name>"
  • Next by thread: Re: To get machine type (ppc, intel)
  • Index(es):
    • Date
    • Thread