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: understanding conversions between CF and NS datatypes




On Aug 29, 2008, at 10:38 AM, Allen Curtis wrote:

1. Where can I get a better understanding of the data conversion between
these different frameworks?

As I understand it, it's not a "data conversion". If a class is toll- free bridged, a CFRef is also an objective-c object. So whether you do something with a CF API or you pass it an objective-c message, they both operate on the same object. When you come down to it, both objective-c objects and CFRefs are pointers, so this makes sense, as long as both sides understand how to interpret the chunk of memory that the pointer references.


--
Dave Carrigan
email@hidden
Seattle, WA, USA

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden

References: 
 >understanding conversions between CF and NS datatypes (From: "Allen Curtis" <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.