On 10/30/09 9:48 AM, Kyle Sluder said:

>> For floats Apple provides no API, but you can use a union like this:
>
>See CFSwappedFloat64: http://developer.apple.com/mac/library/
>DOCUMENTATION/CoreFoundation/Conceptual/CFMemoryMgmt/Tasks/
>ByteSwapping.html#//apple_ref/doc/uid/20001155-CJBEHAAG

Ah yes, I forgot about those... But I've found them not useful in
practice.  I don't get why for ints they have host<->big, host<->little,
etc. for the floats they don't.  Instead they have those weird host<-
>swapped.  And though they take floats, they return structs.  Odd.

--
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to