Open ClassFoundation5.9.0
NSObject
The root class of most Foundation class hierarchies.
class NSObject
Citizens in Foundation
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
init(
) Implemented by subclasses to initialize a new object immediately after memory for it has been allocated.
class var superclass: AnyClass?
class func classFallbacksForKeyedArchiver(
) -> [String] Overridden to return the names of classes that can be used to decode objects if their class is unavailable.
class func classForKeyedUnarchiver(
) -> AnyClass Overridden by subclasses to substitute a new class during keyed unarchiving.
class func isSubclass(of: AnyClass
) -> Bool Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class.
var classForCoder: AnyClass
Overridden by subclasses to substitute a class other than its own during coding.
var classForKeyedArchiver: AnyClass?
Subclasses to substitute a new class for instances during keyed archiving.
var debugDescription: String
Returns a string that describes the contents of the instance for presentation in the debugger.
var description: String
Returns a string that describes the contents of the instance.
var hash: Int
Returns an integer that can be used as a table address in a hash table structure.
var hashValue: Int
The hash value.
static func == (NSObject, NSObject
) -> Bool Returns a Boolean value indicating whether two values are equal.
func copy(
) -> Any Returns the object returned by
copy(with:)
.func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.
func isEqual(Any
?) -> Bool Returns a Boolean value that indicates whether the instance is equal to another given object.
func isKind(of: AnyClass
) -> Bool func isMember(of: AnyClass
) -> Bool func isProxy(
) -> Bool Returns a Boolean value that indicates whether the instance does not descend from NSObject.
func mutableCopy(
) -> Any Returns the object returned by
mutableCopy(with:)
where the zone isnil.
func replacementObject(for: NSKeyedArchiver
) -> Any? Overridden by subclasses to substitute another object for itself during keyed archiving.
func replacementObject(for: NSCoder
) -> Any? Overridden by subclasses to substitute another object for itself during encoding.
func `self`(
) -> Self Returns the instance itself.
Features
Subclasses
class Bundle
class FileHandle
class FileManager
class Formatter
class Host
class JSONSerialization
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 areNSKeyedArchiver
andNSKeyedUnarchiver
. Concrete subclasses ofNSCoder
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 NSCondition
class NSConditionLock
class NSData
class NSDate
class NSDateComponents
class NSDateInterval
class NSDecimalNumberHandler
********* A class for defining common behaviors ******
class NSDictionary
class NSEnumerator
class NSError
class NSIndexPath
class NSIndexSet
class NSLocale
class NSLock
class NSMeasurement
class NSNotification
class NSNull
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 Operation
class OperationQueue
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 PropertyListSerialization
class RunLoop
class Scanner
class Stream
class Thread
class Timer
class Unit
class UnitConverter
class UserDefaults
class NSExpression
class NSOrthography
Available in FoundationNetworking
Subclasses
class CachedURLResponse
class HTTPCookie
HTTPCookie
represents an http cookie.class HTTPCookieStorage
class NSURLRequest
An
NSURLRequest
object represents a URL load request in a manner independent of protocol and URL scheme.class URLAuthenticationChallenge
class URLCache
class URLCredential
class URLCredentialStorage
class URLProtectionSpace
class URLProtocol
class URLResponse
An
URLResponse
object represents a URL load response in a manner independent of protocol and URL scheme.class URLSession
class URLSessionConfiguration
Configuration options for an URLSession.
class URLSessionTask
A cancelable object that refers to the lifetime of processing a given request.
class URLSessionTaskMetrics
class URLSessionTaskTransactionMetrics