Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Foundation Framework and Core Foundation Framework?

I try to get the hang of it, but for now both seem the same thing to me. However, Xcode allows to create an Console App with choice of using "Core Foundation" or just "Foundation". Maybe someone can point out the differences.

like image 715
openfrog Avatar asked Dec 03 '09 22:12

openfrog


People also ask

What is the difference between foundation and framework?

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.

What is the meaning of core foundation?

Core Foundation (also called CF) is a C application programming interface (API) written by Apple for its operating systems, and is a mix of low-level routines and wrapper functions.

What is Apple Foundation framework?

The Foundation framework provides a base layer of functionality for apps and frameworks, including data storage and persistence, text processing, date and time calculations, sorting and filtering, and networking.

What is the foundation module in Swift?

Foundation. The Foundation framework defines a base layer of functionality that is required for almost all applications. It provides primitive classes and introduces several paradigms that define functionality not provided by the language or runtime.


2 Answers

Core Foundation is the C-level API, which provides CFString, CFDictionary and the like.

Foundation is Objective-C, which provides NSString, NSDictionary, etc.

like image 142
amrox Avatar answered Sep 27 '22 20:09

amrox


CoreFoundation is written in C while Foundation is written in Objective-C;

Foundation has a lot more classes;

CoreFoundation is the common base of Foundation and Carbon.

like image 37
Georg Schölly Avatar answered Sep 27 '22 21:09

Georg Schölly