Re: Cocoa Endians for Mac-Intel
Re: Cocoa Endians for Mac-Intel
- Subject: Re: Cocoa Endians for Mac-Intel
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 30 Mar 2006 13:34:04 -0800
On 3/30/06, Lorenzo <email@hidden> wrote:
> Hi,
> I have just ported my app to Mac-Intel. It works pretty well excepted for
> some part. For example, when I earlier compiled for the Mac platform only, I
> had to convert some float, read from a win file, to the big endians for Mac.
> Now, for the Mac-Intel version I check #ifdef __LITTLE_ENDIAN__
> then I don't convert the float to big endians, and this works well.
> That was easy because I know that the data come from a win file.
>
> But as I have seen, now I have to convert some other variables to the little
> endians when #ifdef __LITTLE_ENDIAN__
> So I ask to myself, what should I convert?
> How to determine the variables I have to convert to little endians and the
> variables I can quite leave as they are?
>
> In my code I use QuickTime, OpenGL, Cocoa, C, ObjectiveC.
> Thank for any suggestion.
Your question isn't specific enough to help so I suggest you review...
<http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_intro/chapter_1_section_1.html>
...found on...
<http://developer.apple.com/transition/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden