fbpx
Wikipedia

Foundation Kit

The Foundation Kit, or just Foundation for short, is an Objective-C framework in the OpenStep specification described by NeXT Computer, Inc.. It provides basic classes such as wrapper classes and data structure classes. This framework uses the prefix NS (for NeXTSTEP[1]). It is also part of Cocoa and of the Swift standard library.

Classes edit

NSObject edit

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.

NSString and NSMutableString edit

A class used for string manipulation, representing a Unicode string (most typically using UTF-16 as its internal format). NSString is immutable, and thus can only be initialized but not modified. NSMutableString is a modifiable version.

NSValue and NSNumber edit

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. 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.

NSArray and NSMutableArray edit

A dynamic array of objects, supporting constant-time indexing. NSArray is an immutable version that can only be initialized with objects but not modified. NSMutableArray may be modified by adding and removing objects.

NSDictionary and NSMutableDictionary edit

An associative data container of key-value pairs with unique keys. Searching and element addition and removal (in the case of NSMutableDictionary) is faster-than-linear. However, the order of the elements within the container is not guaranteed.

NSSet and NSMutableSet edit

An associative container of unique keys, similar to NSDictionary, with the difference that members do not contain a data object.

NSData and NSMutableData edit

A wrapper for raw byte data. 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).

NSDate, NSTimeZone and NSCalendar edit

Classes that store times and dates and represent calendrical information. They offer methods for calculating date and time differences. 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.

Major implementations edit

macOS and iOS edit

The Foundation Kit is part of the macOS Cocoa API. Beginning as the successor to OPENSTEP/Mach, this framework has deviated from OpenStep compliance, and is in some places incompatible. The Foundation Kit is in the iOS Cocoa Touch API. This framework is based on the macOS Cocoa.

GNUstep edit

The Foundation Kit is implemented in GNUstep's Base Package (libs-base). This implementation is mostly comparable (4 classes are missing) and aims to be comparable with both the OpenStep API and later macOS additions. The missing classes have been dropped by Apple as well.[2]

Cocotron edit

The Foundation Kit is implemented in Cocotron, an open-source implementation of Cocoa. It is also a part of Darling.

PureFoundation edit

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.

SwiftFoundation edit

SwiftFoundation (swift-corelibs-foundation) is Apple's open-source Swift implementation of the Foundation API for platforms where there is no Objective-C runtime. It also includes an implementation of Core Foundation.[3]

ApportableFoundation edit

ApportableFoundation is an implementation of Foundation Kit (Foundation, CoreFoundation, and CFNetwork) based on Apple's CFLite release. It works on Android and other Linux systems, and makes up part of the Darling macOS translation layer for Linux.

See also edit

References edit

  1. ^ Bumgarner, Bill. "The NS prefix predated Sun signing on to implement the OpenStep spec by quite a bit".
  2. ^ "OpenStep Compliance". GNUstep (Base). Retrieved 17 February 2020.
  3. ^ "swift-corelibs-foundation". GitHub.

External links edit

  • GNUstep Base
  • Apple Foundation Framework Reference
  • Foundation section in the Cocoa Fundamentals Guide
  • List of Classes in OpenStep specification
  • OPENSTEP SPECIFICATION

foundation, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, december, 2009,. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Foundation Kit news newspapers books scholar JSTOR December 2009 Learn how and when to remove this message The Foundation Kit or just Foundation for short is an Objective C framework in the OpenStep specification described by NeXT Computer Inc It provides basic classes such as wrapper classes and data structure classes This framework uses the prefix NS for NeXTSTEP 1 It is also part of Cocoa and of the Swift standard library Contents 1 Classes 1 1 NSObject 1 2 NSString and NSMutableString 1 3 NSValue and NSNumber 1 4 NSArray and NSMutableArray 1 5 NSDictionary and NSMutableDictionary 1 6 NSSet and NSMutableSet 1 7 NSData and NSMutableData 1 8 NSDate NSTimeZone and NSCalendar 2 Major implementations 2 1 macOS and iOS 2 2 GNUstep 2 3 Cocotron 2 4 PureFoundation 2 5 SwiftFoundation 2 6 ApportableFoundation 3 See also 4 References 5 External linksClasses editThis list is incomplete you can help by adding missing items March 2017 NSObject edit 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 NSString and NSMutableString edit A class used for string manipulation representing a Unicode string most typically using UTF 16 as its internal format NSString is immutable and thus can only be initialized but not modified NSMutableString is a modifiable version NSValue and NSNumber edit 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 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 NSArray and NSMutableArray edit A dynamic array of objects supporting constant time indexing NSArray is an immutable version that can only be initialized with objects but not modified NSMutableArray may be modified by adding and removing objects NSDictionary and NSMutableDictionary edit An associative data container of key value pairs with unique keys Searching and element addition and removal in the case of NSMutableDictionary is faster than linear However the order of the elements within the container is not guaranteed NSSet and NSMutableSet edit An associative container of unique keys similar to NSDictionary with the difference that members do not contain a data object NSData and NSMutableData edit A wrapper for raw byte data 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 NSDate NSTimeZone and NSCalendar edit Classes that store times and dates and represent calendrical information They offer methods for calculating date and time differences 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 Major implementations editmacOS and iOS edit The Foundation Kit is part of the macOS Cocoa API Beginning as the successor to OPENSTEP Mach this framework has deviated from OpenStep compliance and is in some places incompatible The Foundation Kit is in the iOS Cocoa Touch API This framework is based on the macOS Cocoa GNUstep edit The Foundation Kit is implemented in GNUstep s Base Package libs base This implementation is mostly comparable 4 classes are missing and aims to be comparable with both the OpenStep API and later macOS additions The missing classes have been dropped by Apple as well 2 Cocotron edit The Foundation Kit is implemented in Cocotron an open source implementation of Cocoa It is also a part of Darling PureFoundation edit 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 SwiftFoundation edit SwiftFoundation swift corelibs foundation is Apple s open source Swift implementation of the Foundation API for platforms where there is no Objective C runtime It also includes an implementation of Core Foundation 3 ApportableFoundation edit ApportableFoundation is an implementation of Foundation Kit Foundation CoreFoundation and CFNetwork based on Apple s CFLite release It works on Android and other Linux systems and makes up part of the Darling macOS translation layer for Linux See also editOpenStep Application Kit GNUstep Cocoa API Cocoa TouchReferences edit Bumgarner Bill The NS prefix predated Sun signing on to implement the OpenStep spec by quite a bit OpenStep Compliance GNUstep Base Retrieved 17 February 2020 swift corelibs foundation GitHub External links editGNUstep Base Apple Foundation Framework Reference Foundation section in the Cocoa Fundamentals Guide List of Classes in OpenStep specification OPENSTEP SPECIFICATION Retrieved from https en wikipedia org w index php title Foundation Kit amp oldid 1222374380, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.