Re: To get machine type (ppc, intel)
Re: To get machine type (ppc, intel)
- Subject: Re: To get machine type (ppc, intel)
- From: Laurent Cerveau <email@hidden>
- Date: Wed, 19 Mar 2008 15:29:54 +0100
Gestalt API should help you or sysctl family. Note that I am not sure
about Rosetta handling in both APIs
laurent
Sent from my roadPhone
On Mar 19, 2008, at 3:14 PM, Nick Rogers <email@hidden> wrote:
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
_______________________________________________
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