Home > DeveloperSection > Interviews > Difference between Foundation and Core Foundation Framework?

Posted on    October-29-2015 3:15 AM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  398  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    October-29-2015 3:15 AM

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.

Modified On Oct-29-2015 03:16:25 AM

Don't want to miss updates? Please click the below button!

Follow MindStick