Re: Foundation vs Core Foundation
Re: Foundation vs Core Foundation
- Subject: Re: Foundation vs Core Foundation
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 29 Nov 2010 15:40:41 -0700
On Nov 29, 2010, at 2:18 PM, Jon Sigman wrote:
> It sounds like Foundation is the safer way to go, especially to safeguard future
> functionality expansion. I take it Foundation does not contain Core Foundation,
> but at least they're not mutually exclusive?
No; many of the classes in Foundation simply wrap CoreFoundation objects. You can even cast Foundation objects to CoreFoundation objects, and they'll work (with a few exceptions, such as NS/CFRunLoop and NS/CFBundle). Search for "toll free bridging" on ADC for more information.
> If I go Foundation, I can include
> Core Foundation as well, should I want something in it, since it's just C?
Yes.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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:
This email sent to email@hidden