Re: CoreFoundation <==> Foundation?
Re: CoreFoundation <==> Foundation?
- Subject: Re: CoreFoundation <==> Foundation?
- From: Chris Kane <email@hidden>
- Date: Wed, 20 Jun 2001 14:45:24 -0500
On Saturday, June 16, 2001, at 07:01 PM, Jim Correia wrote:
If I have existing code which works with CF(*)Refs can I cast them to
NS(*) and expect them to work?
You have to be a little careful. Some things that look the same name are
not necessarily toll-free bridged. CF/NSRunLoop is one example.
Generally "lower-level" collection and data bearing objects are
toll-free bridged.
Are there going to be OOP calling interfaces for things which appear (I
haven't seem them - if they exist please just point me at them) to only
have procedural interfaces to date like CFTree and the XML utilities?
There will likely be ObjC APIs for these in the future. NSTree,
NSXMLParser, etc. may or may not be toll-free bridged to the CF
equivalents (bridging certainly complexifies things over simple API
wrappers).
Chris Kane
Cocoa Frameworks, Apple Computer