Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do deprecated APIs provide byte swapping on the Mac Intel platform?



Hi Miles.  Larry is right that for the most part you don't have to worry about byte swapping at all. You will probably find this document illuminating, as it covers many if not all of the very specific cases where the Mac OS APIs will require your involvement to ensure a correct outcome:

http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary.pdf

Look in particular at the "Specific Scenarios" section. It's worth reading through the whole thing, though. The document was apparently written by Apple after experiencing most of the "developer scenarios" themselves over the past few years preparing for the switch.

Daniel


On Oct 28, 2005, at 5:44 AM, Miles Henderson wrote:

Hi all,
 
Do deprecated APIs provide byte swapping on the Mac Intel platform? For example, consider the following code:
 
Rect bnds;
PixMapHandle pm = GetGWorldPixMap(myport);
if (pm)
{
    bnds = (**pm).bounds;
}
 
After doing the above, will bnds contain the right values or do I need to perform a swap manually? If there are byte swapping issues with some but not all deprecated APIs, does anyone have a list of deprecated APIs that have byte swapping issues?
 
 
Thanks and Regards,
 
Miles Henderson
 
OSX Engineer
Raining Data UK
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Do deprecated APIs provide byte swapping on the Mac Intel platform? (From: "Miles Henderson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.