• 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
Cocoa Endians for Mac-Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa Endians for Mac-Intel
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Opening a window in Core Data application
  • Next by Date: Re: moving views
  • Previous by thread: Re: NSView adjustScale: View is scaled but the image remains the same.
  • Next by thread: Re: Cocoa Endians for Mac-Intel
  • Index(es):
    • Date
    • Thread