Cocoa Endians for Mac-Intel
Cocoa Endians for Mac-Intel
- Subject: Cocoa Endians for Mac-Intel
- From: Lorenzo <email@hidden>
- Date: Thu, 30 Mar 2006 22:49:30 +0200
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.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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