Re: Core Foundation & Cocoa
Re: Core Foundation & Cocoa
- Subject: Re: Core Foundation & Cocoa
- From: Shawn Erickson <email@hidden>
- Date: Sun, 23 Jun 2002 17:14:17 -0700
On Sunday, June 23, 2002, at 01:23 PM, email@hidden wrote:
I am a little confused about intent of Core Foundation in regard to
Cocoa & Carbon, and was hoping some people would shed some light on
this.
Apple's documentation repeatedly talks about using Core Foundation from
within Carbon, as a bridge to Cocoa functionality. Was Core Foundation
not intended to be used within Cocoa applications? Most, but not all,
of the Core Foundation parts are duplicated in Cocoa. For example, CF
String Services & URL Services vs NSString & NSURL. Yet other CF seem
to have no NS equivalent (ex. Plug In Services & XML Services).
Should a native Cocoa application NOT use the CF calls? Are CF & NS
objects completely transparent?
In many ways CF was created from NS/Cocoa and several of the NS class
really are CF internally or bridged. One way to look at is CF is a pure
C version of Cocoa (which is ObjC based). CF was created so a common
foundation could be used for Carbon and Cocoa (and Java).
CF is the lowest level abstraction (above BSD, POSIX, Mach, etc) that
most developers should use with a general goal being to use the highest
level abstraction available when possible and when it fits your
requirements (some things in CF are lighter weight, more direct, or
rawer). Also CF doesn't contain any GUI code so it is free from that
clutter.
Anyway... both Cocoa and Carbon build on CF and any developer can use CF.
As new things are added to CF the higher level APIs of Carbon and Cocoa
will begin to use it for existing APIs and/or will add additional
APIs/Classes that better match at the higher level.
-Shawn
p.s. At WWDC several session on CF, Cocoa and Carbon talked about things
like this. If you are a select or premier developer in the ADC program
you can view most session online.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.