Foundation
import Foundation
import Foundation
typealias CodableAttributedStringKey
typealias CodableWithConfiguration
typealias Comparator
typealias NSErrorDomain
typealias NSPoint
typealias NSPointArray
typealias NSPointPointer
typealias NSRange
typealias NSRangePointer
typealias NSRect
typealias NSRectArray
typealias NSRectPointer
typealias NSSize
typealias NSSizeArray
typealias NSSizePointer
typealias SocketNativeHandle
typealias TimeInterval
typealias unichar
typealias uuid_string_t
typealias uuid_t
let NSCocoaErrorDomain: String
Predefined domain for errors from most Foundation APIs.
var NSCoderReadCorruptError: Int
var NSCoderValueNotFoundError: Int
var NSDateComponentUndefined: Int
let NSDebugDescriptionErrorKey: String
var NSDecimalMaxSize: Int32
var NSDecimalNoScale: Int32
let NSEdgeInsetsZero: NSEdgeInsets
var NSExecutableArchitectureMismatchError: Int
Executable does not provide an architecture compatible with the current process.
var NSExecutableLinkError: Int
Executable fails due to linking issues.
var NSExecutableLoadError: Int
Executable cannot be loaded for some other reason, such as a problem with a library it depends on.
var NSExecutableNotLoadableError: Int
Executable is of a type that is not loadable in the current process.
var NSExecutableRuntimeMismatchError: Int
Executable has Objective-C runtime information incompatible with the current process.
var NSFeatureUnsupportedError: Int
The feature is not supported, either because the file system lacks the feature, or required libraries are missing, or other similar reasons.
let NSFileHandleNotificationDataItem: String
let NSFileHandleNotificationFileHandleItem: String
var NSFileLockingError: Int
Failure to get a lock on file.
var NSFileManagerUnmountBusyError: Int
var NSFileManagerUnmountUnknownError: Int
var NSFileNoSuchFileError: Int
File-system operation attempted on non-existent file.
let NSFilePathErrorKey: String
var NSFileReadCorruptFileError: Int
Read error because of a corrupted file, bad format, or similar reason.
var NSFileReadInapplicableStringEncodingError: Int
Read error because the string encoding was not applicable.
var NSFileReadInvalidFileNameError: Int
Read error because of an invalid file name.
var NSFileReadNoPermissionError: Int
Read error because of a permission problem.
var NSFileReadNoSuchFileError: Int
Read error because no such file was found.
var NSFileReadTooLargeError: Int
Read error because the specified file was too large.
var NSFileReadUnknownError: Int
Read error, reason unknown.
var NSFileReadUnknownStringEncodingError: Int
Read error because the string coding of the file could not be determined.
var NSFileReadUnsupportedSchemeError: Int
Read error because the specified URL scheme is unsupported.
var NSFileWriteFileExistsError: Int
Write error returned when FileManager
class’s copy, move, and link methods report errors when the destination file already exists.
var NSFileWriteInapplicableStringEncodingError: Int
Write error because the string encoding was not applicable.
var NSFileWriteInvalidFileNameError: Int
Write error because of an invalid file name.
var NSFileWriteNoPermissionError: Int
Write error because of a permission problem.
var NSFileWriteOutOfSpaceError: Int
Write error because of a lack of disk space.
var NSFileWriteUnknownError: Int
Write error, reason unknown.
var NSFileWriteUnsupportedSchemeError: Int
Write error because the specified URL scheme is unsupported.
var NSFileWriteVolumeReadOnlyError: Int
Write error because because the volume is read only.
var NSFormattingError: Int
Formatting error (related to display of data).
let NSHelpAnchorErrorKey: String
var NSKeyValueValidationError: Int
Key-value coding validation error.
let NSKeyedArchiveRootObjectKey: String
Archives created using the class method archivedData(withRootObject:)
use this key for the root object in the hierarchy of encoded objects. The NSKeyedUnarchiver
class method unarchiveObject(with:)
looks for this root key as well.
let NSLocalizedDescriptionKey: String
let NSLocalizedFailureReasonErrorKey: String
let NSLocalizedRecoveryOptionsErrorKey: String
let NSLocalizedRecoverySuggestionErrorKey: String
let NSMachErrorDomain: String
let NSNotFound: Int
let NSOSStatusErrorDomain: String
let NSPOSIXErrorDomain: String
let NSPersonNameComponentDelimiter: String
let NSPersonNameComponentFamilyName: String
let NSPersonNameComponentGivenName: String
let NSPersonNameComponentKey: String
let NSPersonNameComponentMiddleName: String
let NSPersonNameComponentNickname: String
let NSPersonNameComponentPrefix: String
let NSPersonNameComponentSuffix: String
var NSPropertyListReadCorruptError: Int
An error was encountered while parsing the property list.
var NSPropertyListReadStreamError: Int
An stream error was encountered while reading the property list.
var NSPropertyListReadUnknownVersionError: Int
The version number of the property list is unable to be determined.
var NSPropertyListWriteInvalidError: Int
var NSPropertyListWriteStreamError: Int
An stream error was encountered while writing the property list.
let NSRecoveryAttempterErrorKey: String
let NSStreamSOCKSErrorDomain: String
let NSStreamSocketSSLErrorDomain: String
let NSStringEncodingErrorKey: String
var NSTimeIntervalSince1970: Double
var NSURLErrorAppTransportSecurityRequiresSecureConnection: Int
var NSURLErrorBackgroundSessionInUseByAnotherProcess: Int
var NSURLErrorBackgroundSessionRequiresSharedContainer: Int
var NSURLErrorBackgroundSessionWasDisconnected: Int
let NSURLErrorBackgroundTaskCancelledReasonKey: String
The NSError
userInfo dictionary key used to store and retrieve the NSNumber
corresponding to the reason why a background URLSessionTask
was cancelled
var NSURLErrorBadServerResponse: Int
var NSURLErrorBadURL: Int
var NSURLErrorCallIsActive: Int
var NSURLErrorCancelled: Int
var NSURLErrorCancelledReasonBackgroundUpdatesDisabled: Int
Code associated with NSURLErrorBackgroundTaskCancelledReasonKey
var NSURLErrorCancelledReasonInsufficientSystemResources: Int
Code associated with NSURLErrorBackgroundTaskCancelledReasonKey
var NSURLErrorCancelledReasonUserForceQuitApplication: Int
Code associated with NSURLErrorBackgroundTaskCancelledReasonKey
var NSURLErrorCannotCloseFile: Int
var NSURLErrorCannotConnectToHost: Int
var NSURLErrorCannotCreateFile: Int
var NSURLErrorCannotDecodeContentData: Int
var NSURLErrorCannotDecodeRawData: Int
var NSURLErrorCannotFindHost: Int
var NSURLErrorCannotLoadFromNetwork: Int
var NSURLErrorCannotMoveFile: Int
var NSURLErrorCannotOpenFile: Int
var NSURLErrorCannotParseResponse: Int
var NSURLErrorCannotRemoveFile: Int
var NSURLErrorCannotWriteToFile: Int
var NSURLErrorClientCertificateRejected: Int
var NSURLErrorClientCertificateRequired: Int
var NSURLErrorDNSLookupFailed: Int
var NSURLErrorDataLengthExceedsMaximum: Int
var NSURLErrorDataNotAllowed: Int
let NSURLErrorDomain: String
NSURLErrorDomain
indicates an NSURL
error.
var NSURLErrorDownloadDecodingFailedMidStream: Int
var NSURLErrorDownloadDecodingFailedToComplete: Int
let NSURLErrorFailingURLErrorKey: String
The NSError
userInfo dictionary key used to store and retrieve the URL which caused a load to fail.
let NSURLErrorFailingURLPeerTrustErrorKey: String
The NSError
userInfo dictionary key used to store and retrieve the SecTrustRef object representing the state of a failed SSL handshake.
let NSURLErrorFailingURLStringErrorKey: String
The NSError
userInfo dictionary key used to store and retrieve the NSString object for the URL which caused a load to fail.
var NSURLErrorFileDoesNotExist: Int
var NSURLErrorFileIsDirectory: Int
var NSURLErrorHTTPTooManyRedirects: Int
var NSURLErrorInternationalRoamingOff: Int
let NSURLErrorKey: String
var NSURLErrorNetworkConnectionLost: Int
var NSURLErrorNoPermissionsToReadFile: Int
var NSURLErrorNotConnectedToInternet: Int
var NSURLErrorRedirectToNonExistentLocation: Int
var NSURLErrorRequestBodyStreamExhausted: Int
var NSURLErrorResourceUnavailable: Int
var NSURLErrorSecureConnectionFailed: Int
var NSURLErrorServerCertificateHasBadDate: Int
var NSURLErrorServerCertificateHasUnknownRoot: Int
var NSURLErrorServerCertificateNotYetValid: Int
var NSURLErrorServerCertificateUntrusted: Int
var NSURLErrorTimedOut: Int
var NSURLErrorUnknown: Int
var NSURLErrorUnsupportedURL: Int
var NSURLErrorUserAuthenticationRequired: Int
var NSURLErrorUserCancelledAuthentication: Int
var NSURLErrorZeroByteResource: Int
var NSUbiquitousFileNotUploadedDueToQuotaError: Int
The item could not be uploaded to iCloud because it would make the account go over its quota.
var NSUbiquitousFileUbiquityServerNotAvailable: Int
Connecting to the iCloud servers failed.
var NSUbiquitousFileUnavailableError: Int
The item has not been uploaded to iCloud by another device yet.
let NSUnderlyingErrorKey: String
var NSUserActivityConnectionUnavailableError: Int
var NSUserActivityHandoffFailedError: Int
var NSUserActivityHandoffUserInfoTooLargeError: Int
var NSUserActivityRemoteApplicationTimedOutError: Int
var NSUserCancelledError: Int
The user cancelled the operation (for example, by pressing Command-period).
var NSXPCConnectionInterrupted: Int
The XPC connection was interrupted.
var NSXPCConnectionInvalid: Int
The XPC connection was invalid.
var NSXPCConnectionReplyInvalid: Int
The XPC connection reply was invalid.
let NSZeroPoint: NSPoint
let NSZeroRect: NSRect
let NSZeroSize: NSSize
func NSClassFromString(String) -> AnyClass?
Returns the class metadata given a string. For compatibility with Foundation on Darwin, unqualified names are looked up in the Foundation module.
func NSContainsRect(NSRect, NSRect) -> Bool
func NSDecimalAdd(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalCompact(UnsafeMutablePointer<Decimal>)
func NSDecimalCompare(UnsafePointer<Decimal>, UnsafePointer<Decimal>) -> ComparisonResult
func NSDecimalCopy(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>)
************* Operations **********
func NSDecimalDivide(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalIsNotANumber(UnsafePointer<Decimal>) -> Bool
func NSDecimalMultiply(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalMultiplyByPowerOf10(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, Int16, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalNormalize(UnsafeMutablePointer<Decimal>, UnsafeMutablePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalPower(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, Int, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalRound(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, Int, NSDecimalNumber.RoundingMode)
func NSDecimalString(UnsafePointer<Decimal>, Any?) -> String
func NSDecimalSubtract(UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDivideRect(NSRect, UnsafeMutablePointer<NSRect>, UnsafeMutablePointer<NSRect>, CGFloat, NSRectEdge)
func NSEdgeInsetsEqual(NSEdgeInsets, NSEdgeInsets) -> Bool
func NSEdgeInsetsMake(CGFloat, CGFloat, CGFloat, CGFloat) -> NSEdgeInsets
func NSEqualPoints(NSPoint, NSPoint) -> Bool
func NSEqualRanges(NSRange, NSRange) -> Bool
func NSEqualRects(NSRect, NSRect) -> Bool
func NSEqualSizes(NSSize, NSSize) -> Bool
func NSFullUserName() -> String
func NSGetSizeAndAlignment(UnsafePointer<Int8>, UnsafeMutablePointer<Int>?, UnsafeMutablePointer<Int>?) -> UnsafePointer<Int8>
func NSHeight(NSRect) -> CGFloat
func NSHomeDirectory() -> String
func NSHomeDirectoryForUser(String?) -> String?
func NSInsetRect(NSRect, CGFloat, CGFloat) -> NSRect
func NSIntegralRect(NSRect) -> NSRect
func NSIntegralRectWithOptions(NSRect, AlignmentOptions) -> NSRect
func NSIntersectionRange(NSRange, NSRange) -> NSRange
func NSIntersectionRect(NSRect, NSRect) -> NSRect
func NSIntersectsRect(NSRect, NSRect) -> Bool
func NSIsEmptyRect(NSRect) -> Bool
func NSLocalizedString(String, tableName: String?, bundle: Bundle, value: String, comment: String) -> String
Returns a localized string, using the main bundle if one is not specified.
func NSLocationInRange(Int, NSRange) -> Bool
func NSLog(String, CVarArg...)
func NSLogv(String, CVaListPointer)
func NSMakePoint(CGFloat, CGFloat) -> NSPoint
func NSMakeRange(Int, Int) -> NSRange
func NSMakeRect(CGFloat, CGFloat, CGFloat, CGFloat) -> NSRect
func NSMakeSize(CGFloat, CGFloat) -> NSSize
func NSMaxRange(NSRange) -> Int
func NSMaxX(NSRect) -> CGFloat
func NSMaxY(NSRect) -> CGFloat
func NSMidX(NSRect) -> CGFloat
func NSMidY(NSRect) -> CGFloat
func NSMinX(NSRect) -> CGFloat
func NSMinY(NSRect) -> CGFloat
func NSMouseInRect(NSPoint, NSRect, Bool) -> Bool
func NSOffsetRect(NSRect, CGFloat, CGFloat) -> NSRect
func NSPageSize() -> Int
func NSPointFromCGPoint(CGPoint) -> NSPoint
func NSPointFromString(String) -> NSPoint
func NSPointInRect(NSPoint, NSRect) -> Bool
func NSPointToCGPoint(NSPoint) -> CGPoint
func NSRangeFromString(String) -> NSRange
func NSRectFromCGRect(CGRect) -> NSRect
func NSRectFromString(String) -> NSRect
func NSRectToCGRect(NSRect) -> CGRect
func NSRoundDownToMultipleOfPageSize(Int) -> Int
func NSRoundUpToMultipleOfPageSize(Int) -> Int
func NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory, FileManager.SearchPathDomainMask, Bool) -> [String]
func NSSizeFromCGSize(CGSize) -> NSSize
func NSSizeFromString(String) -> NSSize
func NSSizeToCGSize(NSSize) -> CGSize
func NSStringFromClass(AnyClass) -> String
Returns the class name for a class. For compatibility with Foundation on Darwin, Foundation classes are returned as unqualified names.
func NSStringFromPoint(NSPoint) -> String
func NSStringFromRange(NSRange) -> String
func NSStringFromRect(NSRect) -> String
func NSStringFromSize(NSSize) -> String
func NSTemporaryDirectory() -> String
func NSUnionRange(NSRange, NSRange) -> NSRange
func NSUnionRect(NSRect, NSRect) -> NSRect
func NSUserName() -> String
func NSWidth(NSRect) -> CGFloat
func acos(CGFloat) -> CGFloat
func acosh(CGFloat) -> CGFloat
func asin(CGFloat) -> CGFloat
func asinh(CGFloat) -> CGFloat
func atan(CGFloat) -> CGFloat
func atan2(CGFloat, CGFloat) -> CGFloat
func atanh(CGFloat) -> CGFloat
func cbrt(CGFloat) -> CGFloat
func copysign(CGFloat, CGFloat) -> CGFloat
func cos(CGFloat) -> CGFloat
func cosh(CGFloat) -> CGFloat
func erf(CGFloat) -> CGFloat
func erfc(CGFloat) -> CGFloat
func exp(CGFloat) -> CGFloat
func exp2(CGFloat) -> CGFloat
func expm1(CGFloat) -> CGFloat
func fdim(CGFloat, CGFloat) -> CGFloat
func fmax(CGFloat, CGFloat) -> CGFloat
func fmin(CGFloat, CGFloat) -> CGFloat
func frexp(CGFloat) -> (CGFloat, Int)
func hypot(CGFloat, CGFloat) -> CGFloat
func ilogb(CGFloat) -> Int
func j0(CGFloat) -> CGFloat
func j1(CGFloat) -> CGFloat
func jn(Int, CGFloat) -> CGFloat
func ldexp(CGFloat, Int) -> CGFloat
func lgamma(CGFloat) -> (CGFloat, Int)
func log(CGFloat) -> CGFloat
func log10(CGFloat) -> CGFloat
func log1p(CGFloat) -> CGFloat
func log2(CGFloat) -> CGFloat
func logb(CGFloat) -> CGFloat
func modf(CGFloat) -> (CGFloat, CGFloat)
func nan(String) -> CGFloat
func nearbyint(CGFloat) -> CGFloat
func nextafter(CGFloat, CGFloat) -> CGFloat
func pow(CGFloat, CGFloat) -> CGFloat
func pow(Decimal, Int) -> Decimal
func remquo(CGFloat, CGFloat) -> (CGFloat, Int)
func rint(CGFloat) -> CGFloat
func scalbn(CGFloat, Int) -> CGFloat
func sin(CGFloat) -> CGFloat
func sinh(CGFloat) -> CGFloat
func tan(CGFloat) -> CGFloat
func tanh(CGFloat) -> CGFloat
func tgamma(CGFloat) -> CGFloat
func y0(CGFloat) -> CGFloat
func y1(CGFloat) -> CGFloat
func yn(Int, CGFloat) -> CGFloat
struct AffineTransform
AffineTransform represents an affine transformation matrix of the following form:
struct AlignmentOptions
struct AttributeContainer
struct AttributeScopeCodableConfiguration
struct AttributedString
struct AttributedSubstring
struct CGFloat
struct CGPoint
struct CGRect
struct CGSize
struct Calendar
Calendar
encapsulates information about systems of reckoning time in which the beginning, length, and divisions of a year are defined. It provides information about the calendar and support for calendrical computations such as determining the range of a given calendrical unit and adding units to a given absolute time.
struct CharacterSet
A CharacterSet
represents a set of Unicode-compliant characters. Foundation types use CharacterSet
to group characters together for searching operations, so that they can find any of a particular set of characters during a search.
struct CocoaError
Describes errors within the Cocoa error domain.
struct CodableConfiguration
struct Data
struct Date
Date
represents a single point in time.
struct DateComponents
DateComponents
encapsulates the components of a date in an extendable, structured manner.
struct DateInterval
DateInterval represents a closed date interval in the form of [startDate, endDate]. It is possible for the start and end dates to be the same with a duration of 0. DateInterval does not support reverse intervals i.e. intervals where the duration is less than 0 and the end date occurs earlier in time than the start date.
struct Decimal
struct FileAttributeKey
struct FileAttributeType
struct IndexPath
IndexPath
represents the path to a specific node in a tree of nested array collections.
struct IndexSet
Manages a Set
of integer values, which are commonly used as an index type in Cocoa API.
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
struct Measurement
A Measurement
is a model type that holds a Double
value associated with a Unit
.
struct Morphology
struct NSAffineTransformStruct
A structure that defines the three-by-three matrix that performs an affine transform between two coordinate systems.
struct NSBinarySearchingOptions
struct NSEdgeInsets
struct NSEnumerationOptions
struct NSExceptionName
************* Exceptions **********
struct NSIndexSetIterator
struct NSSortOptions
struct NSTextCheckingKey
struct NSZone
struct Notification
Notification
encapsulates information broadcast to observers via a NotificationCenter
.
struct ObjCBool
The Objective-C BOOL type.
struct OperatingSystemVersion
struct POSIXError
Describes an error in the POSIX error domain.
struct PersonNameComponents
struct ProgressKind
struct ProgressUserInfoKey
struct ScopedAttributeContainer
struct StreamNetworkServiceTypeValue
struct StreamSOCKSProxyConfiguration
struct StreamSOCKSProxyVersion
struct StreamSocketSecurityLevel
struct StringTransform
struct TimeZone
TimeZone
defines the behavior of a time zone. Time zone values represent geopolitical regions. Consequently, these values have names for these regions. Time zone values also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard Time).
struct URL
A URL is a type that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data.
struct URLComponents
A structure designed to parse URLs based on RFC 3986 and to construct URLs from their constituent parts.
struct URLError
Describes errors in the URL error domain.
struct URLFileResourceType
struct URLQueryItem
A single name-value pair, for use with URLComponents
.
struct URLResourceKey
struct URLResourceValues
URLs to file system resources support the properties defined below. Note that not all property values will exist for all file system URLs. For example, if a file is located on a volume that does not support creation dates, it is valid to request the creation date property, but the returned value will be nil, and no error will be generated.
struct UUID
Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items.
class BlockOperation
class Bundle
class ByteCountFormatter
class DateFormatter
class DateIntervalFormatter
class Dimension
class EnergyFormatter
class FileHandle
class FileManager
class Formatter
class Host
class ISO8601DateFormatter
class InputStream
class JSONDecoder
JSONDecoder
facilitates the decoding of JSON into semantic Decodable
types.
class JSONEncoder
JSONEncoder
facilitates the encoding of Encodable
values into JSON.
class JSONSerialization
class LengthFormatter
class MassFormatter
class NSAffineTransform
class NSArray
class NSAttributedString
class NSCache
class NSCalendar
class NSCharacterSet
class NSCoder
The NSCoder
abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSKeyedArchiver
and NSKeyedUnarchiver
. Concrete subclasses of NSCoder
are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
class NSCompoundPredicate
class NSCondition
class NSConditionLock
class NSCountedSet
************** Counted Set ***************
class NSData
class NSDate
class NSDateComponents
class NSDateInterval
class NSDecimalNumber
************* NSDecimalNumber: the class **********
class NSDecimalNumberHandler
********* A class for defining common behaviors ******
class NSDictionary
class NSEnumerator
class NSError
class NSIndexPath
class NSIndexSet
class NSKeyedArchiver
NSKeyedArchiver
, a concrete subclass of NSCoder
, provides a way to encode objects (and scalar values) into an architecture-independent format that can be stored in a file. When you archive a set of objects, the class information and instance variables for each object are written to the archive. NSKeyedArchiver
’s companion class, NSKeyedUnarchiver
, decodes the data in an archive and creates a set of objects equivalent to the original set.
class NSKeyedUnarchiver
class NSLocale
class NSLock
class NSMeasurement
class NSMutableArray
class NSMutableAttributedString
class NSMutableCharacterSet
class NSMutableData
class NSMutableDictionary
class NSMutableIndexSet
class NSMutableOrderedSet
************** Mutable Ordered Set ***************
class NSMutableSet
class NSMutableString
class NSNotification
class NSNull
class NSNumber
class NSObject
The root class of most Foundation class hierarchies.
class NSOrderedSet
************** Immutable Ordered Set ***************
class NSPersonNameComponents
class NSPredicate
class NSRecursiveLock
class NSRegularExpression
class NSSet
class NSSortDescriptor
class NSString
class NSTextCheckingResult
class NSTimeZone
class NSURL
class NSURLComponents
class NSURLQueryItem
class NSUUID
class NSValue
class NotificationCenter
class NotificationQueue
class NumberFormatter
class Operation
class OperationQueue
class OutputStream
class Pipe
class Port
class PortMessage
class Process
class ProcessInfo
class Progress
Progress
is used to report the amount of work done, and provides a way to allow the user to cancel that work.
class PropertyListDecoder
class PropertyListEncoder
class PropertyListSerialization
class RunLoop
class Scanner
class SocketPort
class Stream
class Thread
class Timer
class Unit
class UnitAcceleration
class UnitAngle
class UnitArea
class UnitConcentrationMass
class UnitConverter
class UnitConverterLinear
class UnitDispersion
class UnitDuration
class UnitElectricCharge
class UnitElectricCurrent
class UnitElectricPotentialDifference
class UnitElectricResistance
class UnitEnergy
class UnitFrequency
class UnitFuelEfficiency
class UnitIlluminance
class UnitInformationStorage
class UnitLength
class UnitMass
class UnitPower
class UnitPressure
class UnitSpeed
class UnitTemperature
class UnitVolume
class UserDefaults
protocol AttributeScope
protocol AttributedStringAttributeMutation
protocol AttributedStringKey
protocol AttributedStringProtocol
protocol ContiguousBytes
Indicates that the conforming type is a contiguous collection of raw bytes whose underlying storage is directly accessible by withUnsafeBytes.
protocol CustomNSError
Describes an error type that specifically provides a domain, code, and user-info dictionary.
protocol DataProtocol
protocol DecodableAttributedStringKey
protocol DecodableWithConfiguration
protocol DecodingConfigurationProviding
protocol EncodableAttributedStringKey
protocol EncodableWithConfiguration
protocol EncodingConfigurationProviding
protocol FileManagerDelegate
protocol LocalizedError
Describes an error that provides localized messages describing why an error occurred and provides more information about the error.
protocol MarkdownDecodableAttributedStringKey
protocol MutableDataProtocol
protocol NSCacheDelegate
protocol NSCoding
The NSCoding
protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces).
protocol NSCopying
The NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSDecimalNumberBehaviors
protocol NSKeyedArchiverDelegate
The NSKeyedArchiverDelegate
protocol defines the optional methods implemented by delegates of NSKeyedArchiver
objects.
protocol NSKeyedUnarchiverDelegate
protocol NSLocking
protocol NSMutableCopying
The NSMutableCopying
protocol declares a method for providing mutable copies of an object. Only classes that define an “immutable vs. mutable” distinction should adopt this protocol. Classes that don’t define such a distinction should adopt NSCopying
instead.
protocol NSObjectProtocol
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
protocol NSSecureCoding
Conforming to the NSSecureCoding
protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.
protocol ObjectiveCConvertibleAttributedStringKey
protocol PortDelegate
protocol ProgressReporting
If your class supports reporting progress, then you can adopt the ProgressReporting protocol.
protocol RecoverableError
Describes an error that may be recoverable by presenting several potential recovery options to the user.
protocol ReferenceConvertible
Decorates types which are backed by a Foundation reference type.
protocol StreamDelegate