Difference between Foundation and Core Foundation Framework?
Ask by Tarun Kumar
Updated 24 Sep 2020
Core Foundation is a general-purpose C framework whereas Foundation is a general-purpose Objective-C framework. Both provide collection classes, run loops, etc, and many of the Foundation classes are wrappers around the CF equivalents. CF is mostly open-source, and Foundation is closed-source.
Core Foundation is the C-level API, which provides CF String, CFDictionary and the like.Foundation is Objective-C, which provides NSString, NSDictionary, etc. CoreFoundation is written in C while Foundation is written in Objective-C. Foundation has a lot more classes Core Foundation is the common base of Foundation and Carbon.