Foundation Kit
The Foundation Kit, or just Foundation for short, is an Objective-C framework in the OpenStep specification described by NeXT Computer, Inc.[src] It provides basic classes such as wrapper classes and data structure classes.[src] This framework uses the prefix NS (for NeXTSTEP ).[src] It is also part of Cocoa and of the Swift standard library.[src]
The Foundation Kit, or just Foundation for short, is an Objective-C framework in the OpenStep specification described by NeXT Computer, Inc.[src] It provides basic classes such as wrapper classes and data structure classes.[src] This framework uses the prefix NS (for NeXTSTEP ).[src] It is also part of Cocoa and of the Swift standard library.[src] ==Classes== ===NSObject=== This class is the most common base class for Objective-C hierarchies and provides standard methods for working with objects by managing the memory associated with them and querying them.[src] ===NSString and NSMutableString=== A class used for string manipulation, representing a Unicode string (most typically using UTF-16 as its internal format).[src] NSString is immutable, and thus can only be initialized but not modified.[src] NSMutableString is a modifiable version.[src] ===NSValue and NSNumber=== NSValue is a wrapper class for C data types, and NSNumber is a wrapper class for C number data types such as int, double, and float.[src] The data structures in Foundation Kit can only hold objects, not primitive types, so wrappers such as NSValue and NSNumber are used in those data structures.[src] ===NSArray and NSMutableArray=== A dynamic array of objects, supporting constant-time indexing.[src] NSArray is an immutable version that can only be initialized with objects but not modified.[src] NSMutableArray may be modified by adding and removing objects.[src] ===NSDictionary and NSMutableDictionary=== An associative data container of key-value pairs with unique keys.[src] Searching and element addition and removal (in the case of NSMutableDictionary) is faster-than-linear.[src] However, the order of the elements within the container is not guaranteed.[src] ===NSSet and NSMutableSet=== An associative container of unique keys, similar to NSDictionary, with the difference that members do not contain a data object.[src] ===NSData and NSMutableData=== A wrapper for raw byte data.[src] An object of this type can dynamically allocate and manage its data, or it can refer to data owned by and managed by something else (such as a static numeric array).[src] ===NSDate, NSTimeZone and NSCalendar=== Classes that store times and dates and represent calendrical information.[src] They offer methods for calculating date and time differences.[src] Together with NSLocale, they provide methods for displaying dates and times in many formats, and for adjusting times and dates based on location in the world.[src] ==Major implementations== ===GNUstep=== The Foundation Kit is implemented in GNUstep's Base Package (libs-base).[src] This implementation is mostly comparable (4 classes are missing) and aims to be comparable with both the OpenStep API and later macOS additions.[src] The missing classes have been dropped by Apple as well.[src] ===Cocotron=== The Foundation Kit is implemented in Cocotron, an open-source implementation of Cocoa.[src] It is also a part of Darling.[src] ===PureFoundation=== PureFoundation is an open-source implementation of Foundation that implements Foundation by wrapping Core Foundation, just like in Cocoa, rather than create a separate Foundation from scratch like GNUstep and Cocotron.[src] ===SwiftFoundation=== SwiftFoundation (swift-corelibs-foundation) is Apple's open-source Swift implementation of the Foundation API for platforms where there is no Objective-C runtime.[src] It also includes an implementation of Core Foundation.[src] ===ApportableFoundation=== ApportableFoundation is an implementation of Foundation Kit (Foundation, CoreFoundation, and CFNetwork) based on Apple's CFLite release.[src] It works on Android and other Linux systems, and makes up part of the Darling macOS translation layer for Linux.[src] ==See also== OpenStep Application Kit UIKit GNUstep Cocoa (API) ==References== ==External links== GNUstep Base Apple Foundation Framework Reference Foundation section in the Cocoa Fundamentals Guide List of Classes in OpenStep specification OPENSTEP SPECIFICATION[src]
37 sentences · 37 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Foundation Kit." encyclopegia.org, 2025, https://encyclopegia.org/wiki/foundation-kit. Accessed 27 November 2026.
Chicago
"Foundation Kit." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/foundation-kit.
APA
encyclopegia.org. (2025). Foundation Kit. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/foundation-kit
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON