Foundation Changes for Swift
Foundation
Added CustomNSError.errorCode
Added CustomNSError.errorDomain
Added CustomNSError.errorUserInfo
Added Int16.init(_: NSNumber)
Added Int32.init(_: NSNumber)
Added Int64.init(_: NSNumber)
Added Int8.init(_: NSNumber)
Added UInt16.init(_: NSNumber)
Added UInt32.init(_: NSNumber)
Added UInt64.init(_: NSNumber)
Added UInt8.init(_: NSNumber)
Modified FileManager
| Declaration | |
|---|---|
| From | class FileManager : NSObject {
class var `default`: FileManager { get }
func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
func unmountVolume(at url: URL, options mask: FileManager.UnmountOptions = [], completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
func contentsOfDirectory(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = []) throws -> [URL]
func urls(for directory: FileManager.SearchPathDirectory, in domainMask: FileManager.SearchPathDomainMask) -> [URL]
func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor url: URL?, create shouldCreate: Bool) throws -> URL
func getRelationship(_ outRelationship: UnsafeMutablePointer<FileManager.URLRelationship>, ofDirectoryAt directoryURL: URL, toItemAt otherURL: URL) throws
func getRelationship(_ outRelationship: UnsafeMutablePointer<FileManager.URLRelationship>, of directory: FileManager.SearchPathDirectory, in domainMask: FileManager.SearchPathDomainMask, toItemAt url: URL) throws
func createDirectory(at url: URL, withIntermediateDirectories createIntermediates: Bool, attributes attributes: [String : Any]? = nil) throws
func createSymbolicLink(at url: URL, withDestinationURL destURL: URL) throws
unowned(unsafe) var delegate: FileManagerDelegate?
func setAttributes(_ attributes: [FileAttributeKey : Any], ofItemAtPath path: String) throws
func createDirectory(atPath path: String, withIntermediateDirectories createIntermediates: Bool, attributes attributes: [String : Any]? = nil) throws
func contentsOfDirectory(atPath path: String) throws -> [String]
func subpathsOfDirectory(atPath path: String) throws -> [String]
func attributesOfItem(atPath path: String) throws -> [FileAttributeKey : Any]
func attributesOfFileSystem(forPath path: String) throws -> [FileAttributeKey : Any]
func createSymbolicLink(atPath path: String, withDestinationPath destPath: String) throws
func destinationOfSymbolicLink(atPath path: String) throws -> String
func copyItem(atPath srcPath: String, toPath dstPath: String) throws
func moveItem(atPath srcPath: String, toPath dstPath: String) throws
func linkItem(atPath srcPath: String, toPath dstPath: String) throws
func removeItem(atPath path: String) throws
func copyItem(at srcURL: URL, to dstURL: URL) throws
func moveItem(at srcURL: URL, to dstURL: URL) throws
func linkItem(at srcURL: URL, to dstURL: URL) throws
func removeItem(at URL: URL) throws
func trashItem(at url: URL, resultingItemURL outResultingURL: AutoreleasingUnsafeMutablePointer<NSURL?>?) throws
func fileAttributes(atPath path: String, traverseLink yorn: Bool) -> [AnyHashable : Any]?
func changeFileAttributes(_ attributes: [AnyHashable : Any] = [:], atPath path: String) -> Bool
func directoryContents(atPath path: String) -> [Any]?
func fileSystemAttributes(atPath path: String) -> [AnyHashable : Any]?
func pathContentOfSymbolicLink(atPath path: String) -> String?
func createSymbolicLink(atPath path: String, pathContent otherpath: String) -> Bool
func createDirectory(atPath path: String, attributes attributes: [AnyHashable : Any] = [:]) -> Bool
var currentDirectoryPath: String { get }
func changeCurrentDirectoryPath(_ path: String) -> Bool
func fileExists(atPath path: String) -> Bool
func fileExists(atPath path: String, isDirectory isDirectory: UnsafeMutablePointer<ObjCBool>?) -> Bool
func isReadableFile(atPath path: String) -> Bool
func isWritableFile(atPath path: String) -> Bool
func isExecutableFile(atPath path: String) -> Bool
func isDeletableFile(atPath path: String) -> Bool
func contentsEqual(atPath path1: String, andPath path2: String) -> Bool
func displayName(atPath path: String) -> String
func componentsToDisplay(forPath path: String) -> [String]?
func enumerator(atPath path: String) -> FileManager.DirectoryEnumerator?
func enumerator(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = [], errorHandler handler: (@escaping (URL, Error) -> Bool)? = nil) -> FileManager.DirectoryEnumerator?
func subpaths(atPath path: String) -> [String]?
func contents(atPath path: String) -> Data?
func createFile(atPath path: String, contents data: Data?, attributes attr: [String : Any]? = nil) -> Bool
func fileSystemRepresentation(withPath path: String) -> UnsafePointer<Int8>
func string(withFileSystemRepresentation str: UnsafePointer<Int8>, length len: Int) -> String
func replaceItem(at originalItemURL: URL, withItemAt newItemURL: URL, backupItemName backupItemName: String?, options options: FileManager.ItemReplacementOptions = [], resultingItemURL resultingURL: AutoreleasingUnsafeMutablePointer<NSURL?>?) throws
func setUbiquitous(_ flag: Bool, itemAt url: URL, destinationURL destinationURL: URL) throws
func isUbiquitousItem(at url: URL) -> Bool
func startDownloadingUbiquitousItem(at url: URL) throws
func evictUbiquitousItem(at url: URL) throws
func url(forUbiquityContainerIdentifier containerIdentifier: String?) -> URL?
func url(forPublishingUbiquitousItemAt url: URL, expiration outDate: AutoreleasingUnsafeMutablePointer<NSDate?>?) throws -> URL
@NSCopying var ubiquityIdentityToken: (NSCoding & NSCopying & NSObjectProtocol)? { get }
func containerURL(forSecurityApplicationGroupIdentifier groupIdentifier: String) -> URL?
func replaceItemAtURL(originalItemURL originalItemURL: NSURL, withItemAtURL newItemURL: NSURL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
func replaceItemAt(_ originalItemURL: URL, withItemAt newItemURL: URL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
var homeDirectoryForCurrentUser: URL { get }
var temporaryDirectory: URL { get }
func homeDirectory(forUser userName: String) -> URL?
class DirectoryEnumerator : NSEnumerator {
var fileAttributes: [FileAttributeKey : Any]? { get }
var directoryAttributes: [FileAttributeKey : Any]? { get }
func skipDescendents()
var level: Int { get }
func skipDescendants()
}
struct VolumeEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipHiddenVolumes: FileManager.VolumeEnumerationOptions { get }
static var produceFileReferenceURLs: FileManager.VolumeEnumerationOptions { get }
}
struct DirectoryEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipsSubdirectoryDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsPackageDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsHiddenFiles: FileManager.DirectoryEnumerationOptions { get }
}
struct ItemReplacementOptions : OptionSet {
init(rawValue rawValue: UInt)
static var usingNewMetadataOnly: FileManager.ItemReplacementOptions { get }
static var withoutDeletingBackupItem: FileManager.ItemReplacementOptions { get }
}
enum URLRelationship : Int {
case contains
case same
case other
}
struct UnmountOptions : OptionSet {
init(rawValue rawValue: UInt)
static var allPartitionsAndEjectDisk: FileManager.UnmountOptions { get }
static var withoutUI: FileManager.UnmountOptions { get }
}
enum SearchPathDirectory : UInt {
case applicationDirectory
case demoApplicationDirectory
case developerApplicationDirectory
case adminApplicationDirectory
case libraryDirectory
case developerDirectory
case userDirectory
case documentationDirectory
case documentDirectory
case coreServiceDirectory
case autosavedInformationDirectory
case desktopDirectory
case cachesDirectory
case applicationSupportDirectory
case downloadsDirectory
case inputMethodsDirectory
case moviesDirectory
case musicDirectory
case picturesDirectory
case printerDescriptionDirectory
case sharedPublicDirectory
case preferencePanesDirectory
case applicationScriptsDirectory
case itemReplacementDirectory
case allApplicationsDirectory
case allLibrariesDirectory
case trashDirectory
}
struct SearchPathDomainMask : OptionSet {
init(rawValue rawValue: UInt)
static var userDomainMask: FileManager.SearchPathDomainMask { get }
static var localDomainMask: FileManager.SearchPathDomainMask { get }
static var networkDomainMask: FileManager.SearchPathDomainMask { get }
static var systemDomainMask: FileManager.SearchPathDomainMask { get }
static var allDomainsMask: FileManager.SearchPathDomainMask { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension FileManager : CVarArg {
}
extension FileManager : Equatable, Hashable {
var hashValue: Int { get }
}
extension FileManager {
var homeDirectoryForCurrentUser: URL { get }
var temporaryDirectory: URL { get }
func homeDirectory(forUser userName: String) -> URL?
}
extension FileManager {
class DirectoryEnumerator : NSEnumerator {
var fileAttributes: [FileAttributeKey : Any]? { get }
var directoryAttributes: [FileAttributeKey : Any]? { get }
func skipDescendents()
var level: Int { get }
func skipDescendants()
}
struct VolumeEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipHiddenVolumes: FileManager.VolumeEnumerationOptions { get }
static var produceFileReferenceURLs: FileManager.VolumeEnumerationOptions { get }
}
struct DirectoryEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipsSubdirectoryDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsPackageDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsHiddenFiles: FileManager.DirectoryEnumerationOptions { get }
}
struct ItemReplacementOptions : OptionSet {
init(rawValue rawValue: UInt)
static var usingNewMetadataOnly: FileManager.ItemReplacementOptions { get }
static var withoutDeletingBackupItem: FileManager.ItemReplacementOptions { get }
}
enum URLRelationship : Int {
case contains
case same
case other
}
struct UnmountOptions : OptionSet {
init(rawValue rawValue: UInt)
static var allPartitionsAndEjectDisk: FileManager.UnmountOptions { get }
static var withoutUI: FileManager.UnmountOptions { get }
}
}
extension FileManager {
enum SearchPathDirectory : UInt {
case applicationDirectory
case demoApplicationDirectory
case developerApplicationDirectory
case adminApplicationDirectory
case libraryDirectory
case developerDirectory
case userDirectory
case documentationDirectory
case documentDirectory
case coreServiceDirectory
case autosavedInformationDirectory
case desktopDirectory
case cachesDirectory
case applicationSupportDirectory
case downloadsDirectory
case inputMethodsDirectory
case moviesDirectory
case musicDirectory
case picturesDirectory
case printerDescriptionDirectory
case sharedPublicDirectory
case preferencePanesDirectory
case applicationScriptsDirectory
case itemReplacementDirectory
case allApplicationsDirectory
case allLibrariesDirectory
case trashDirectory
}
struct SearchPathDomainMask : OptionSet {
init(rawValue rawValue: UInt)
static var userDomainMask: FileManager.SearchPathDomainMask { get }
static var localDomainMask: FileManager.SearchPathDomainMask { get }
static var networkDomainMask: FileManager.SearchPathDomainMask { get }
static var systemDomainMask: FileManager.SearchPathDomainMask { get }
static var allDomainsMask: FileManager.SearchPathDomainMask { get }
}
}
extension FileManager {
func replaceItemAtURL(originalItemURL originalItemURL: NSURL, withItemAtURL newItemURL: NSURL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
func replaceItemAt(_ originalItemURL: URL, withItemAt newItemURL: URL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
} |
| To | class FileManager : NSObject {
class var `default`: FileManager { get }
func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
func unmountVolume(at url: URL, options mask: FileManager.UnmountOptions = [], completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
func contentsOfDirectory(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = []) throws -> [URL]
func urls(for directory: FileManager.SearchPathDirectory, in domainMask: FileManager.SearchPathDomainMask) -> [URL]
func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor url: URL?, create shouldCreate: Bool) throws -> URL
func getRelationship(_ outRelationship: UnsafeMutablePointer<FileManager.URLRelationship>, ofDirectoryAt directoryURL: URL, toItemAt otherURL: URL) throws
func getRelationship(_ outRelationship: UnsafeMutablePointer<FileManager.URLRelationship>, of directory: FileManager.SearchPathDirectory, in domainMask: FileManager.SearchPathDomainMask, toItemAt url: URL) throws
func createDirectory(at url: URL, withIntermediateDirectories createIntermediates: Bool, attributes attributes: [String : Any]? = nil) throws
func createSymbolicLink(at url: URL, withDestinationURL destURL: URL) throws
unowned(unsafe) var delegate: FileManagerDelegate?
func setAttributes(_ attributes: [FileAttributeKey : Any], ofItemAtPath path: String) throws
func createDirectory(atPath path: String, withIntermediateDirectories createIntermediates: Bool, attributes attributes: [String : Any]? = nil) throws
func contentsOfDirectory(atPath path: String) throws -> [String]
func subpathsOfDirectory(atPath path: String) throws -> [String]
func attributesOfItem(atPath path: String) throws -> [FileAttributeKey : Any]
func attributesOfFileSystem(forPath path: String) throws -> [FileAttributeKey : Any]
func createSymbolicLink(atPath path: String, withDestinationPath destPath: String) throws
func destinationOfSymbolicLink(atPath path: String) throws -> String
func copyItem(atPath srcPath: String, toPath dstPath: String) throws
func moveItem(atPath srcPath: String, toPath dstPath: String) throws
func linkItem(atPath srcPath: String, toPath dstPath: String) throws
func removeItem(atPath path: String) throws
func copyItem(at srcURL: URL, to dstURL: URL) throws
func moveItem(at srcURL: URL, to dstURL: URL) throws
func linkItem(at srcURL: URL, to dstURL: URL) throws
func removeItem(at URL: URL) throws
func trashItem(at url: URL, resultingItemURL outResultingURL: AutoreleasingUnsafeMutablePointer<NSURL?>?) throws
func fileAttributes(atPath path: String, traverseLink yorn: Bool) -> [AnyHashable : Any]?
func changeFileAttributes(_ attributes: [AnyHashable : Any] = [:], atPath path: String) -> Bool
func directoryContents(atPath path: String) -> [Any]?
func fileSystemAttributes(atPath path: String) -> [AnyHashable : Any]?
func pathContentOfSymbolicLink(atPath path: String) -> String?
func createSymbolicLink(atPath path: String, pathContent otherpath: String) -> Bool
func createDirectory(atPath path: String, attributes attributes: [AnyHashable : Any] = [:]) -> Bool
var currentDirectoryPath: String { get }
func changeCurrentDirectoryPath(_ path: String) -> Bool
func fileExists(atPath path: String) -> Bool
func fileExists(atPath path: String, isDirectory isDirectory: UnsafeMutablePointer<ObjCBool>?) -> Bool
func isReadableFile(atPath path: String) -> Bool
func isWritableFile(atPath path: String) -> Bool
func isExecutableFile(atPath path: String) -> Bool
func isDeletableFile(atPath path: String) -> Bool
func contentsEqual(atPath path1: String, andPath path2: String) -> Bool
func displayName(atPath path: String) -> String
func componentsToDisplay(forPath path: String) -> [String]?
func enumerator(atPath path: String) -> FileManager.DirectoryEnumerator?
func enumerator(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = [], errorHandler handler: ((URL, Error) -> Bool)? = nil) -> FileManager.DirectoryEnumerator?
func subpaths(atPath path: String) -> [String]?
func contents(atPath path: String) -> Data?
func createFile(atPath path: String, contents data: Data?, attributes attr: [String : Any]? = nil) -> Bool
func fileSystemRepresentation(withPath path: String) -> UnsafePointer<Int8>
func string(withFileSystemRepresentation str: UnsafePointer<Int8>, length len: Int) -> String
func replaceItem(at originalItemURL: URL, withItemAt newItemURL: URL, backupItemName backupItemName: String?, options options: FileManager.ItemReplacementOptions = [], resultingItemURL resultingURL: AutoreleasingUnsafeMutablePointer<NSURL?>?) throws
func setUbiquitous(_ flag: Bool, itemAt url: URL, destinationURL destinationURL: URL) throws
func isUbiquitousItem(at url: URL) -> Bool
func startDownloadingUbiquitousItem(at url: URL) throws
func evictUbiquitousItem(at url: URL) throws
func url(forUbiquityContainerIdentifier containerIdentifier: String?) -> URL?
func url(forPublishingUbiquitousItemAt url: URL, expiration outDate: AutoreleasingUnsafeMutablePointer<NSDate?>?) throws -> URL
@NSCopying var ubiquityIdentityToken: (NSCoding & NSCopying & NSObjectProtocol)? { get }
func containerURL(forSecurityApplicationGroupIdentifier groupIdentifier: String) -> URL?
func replaceItemAtURL(originalItemURL originalItemURL: NSURL, withItemAtURL newItemURL: NSURL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
func replaceItemAt(_ originalItemURL: URL, withItemAt newItemURL: URL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
var homeDirectoryForCurrentUser: URL { get }
var temporaryDirectory: URL { get }
func homeDirectory(forUser userName: String) -> URL?
class DirectoryEnumerator : NSEnumerator {
var fileAttributes: [FileAttributeKey : Any]? { get }
var directoryAttributes: [FileAttributeKey : Any]? { get }
func skipDescendents()
var level: Int { get }
func skipDescendants()
}
struct VolumeEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipHiddenVolumes: FileManager.VolumeEnumerationOptions { get }
static var produceFileReferenceURLs: FileManager.VolumeEnumerationOptions { get }
}
struct DirectoryEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipsSubdirectoryDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsPackageDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsHiddenFiles: FileManager.DirectoryEnumerationOptions { get }
}
struct ItemReplacementOptions : OptionSet {
init(rawValue rawValue: UInt)
static var usingNewMetadataOnly: FileManager.ItemReplacementOptions { get }
static var withoutDeletingBackupItem: FileManager.ItemReplacementOptions { get }
}
enum URLRelationship : Int {
case contains
case same
case other
}
struct UnmountOptions : OptionSet {
init(rawValue rawValue: UInt)
static var allPartitionsAndEjectDisk: FileManager.UnmountOptions { get }
static var withoutUI: FileManager.UnmountOptions { get }
}
enum SearchPathDirectory : UInt {
case applicationDirectory
case demoApplicationDirectory
case developerApplicationDirectory
case adminApplicationDirectory
case libraryDirectory
case developerDirectory
case userDirectory
case documentationDirectory
case documentDirectory
case coreServiceDirectory
case autosavedInformationDirectory
case desktopDirectory
case cachesDirectory
case applicationSupportDirectory
case downloadsDirectory
case inputMethodsDirectory
case moviesDirectory
case musicDirectory
case picturesDirectory
case printerDescriptionDirectory
case sharedPublicDirectory
case preferencePanesDirectory
case applicationScriptsDirectory
case itemReplacementDirectory
case allApplicationsDirectory
case allLibrariesDirectory
case trashDirectory
}
struct SearchPathDomainMask : OptionSet {
init(rawValue rawValue: UInt)
static var userDomainMask: FileManager.SearchPathDomainMask { get }
static var localDomainMask: FileManager.SearchPathDomainMask { get }
static var networkDomainMask: FileManager.SearchPathDomainMask { get }
static var systemDomainMask: FileManager.SearchPathDomainMask { get }
static var allDomainsMask: FileManager.SearchPathDomainMask { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension FileManager : CVarArg {
}
extension FileManager : Equatable, Hashable {
var hashValue: Int { get }
}
extension FileManager {
var homeDirectoryForCurrentUser: URL { get }
var temporaryDirectory: URL { get }
func homeDirectory(forUser userName: String) -> URL?
}
extension FileManager {
class DirectoryEnumerator : NSEnumerator {
var fileAttributes: [FileAttributeKey : Any]? { get }
var directoryAttributes: [FileAttributeKey : Any]? { get }
func skipDescendents()
var level: Int { get }
func skipDescendants()
}
struct VolumeEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipHiddenVolumes: FileManager.VolumeEnumerationOptions { get }
static var produceFileReferenceURLs: FileManager.VolumeEnumerationOptions { get }
}
struct DirectoryEnumerationOptions : OptionSet {
init(rawValue rawValue: UInt)
static var skipsSubdirectoryDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsPackageDescendants: FileManager.DirectoryEnumerationOptions { get }
static var skipsHiddenFiles: FileManager.DirectoryEnumerationOptions { get }
}
struct ItemReplacementOptions : OptionSet {
init(rawValue rawValue: UInt)
static var usingNewMetadataOnly: FileManager.ItemReplacementOptions { get }
static var withoutDeletingBackupItem: FileManager.ItemReplacementOptions { get }
}
enum URLRelationship : Int {
case contains
case same
case other
}
struct UnmountOptions : OptionSet {
init(rawValue rawValue: UInt)
static var allPartitionsAndEjectDisk: FileManager.UnmountOptions { get }
static var withoutUI: FileManager.UnmountOptions { get }
}
}
extension FileManager {
enum SearchPathDirectory : UInt {
case applicationDirectory
case demoApplicationDirectory
case developerApplicationDirectory
case adminApplicationDirectory
case libraryDirectory
case developerDirectory
case userDirectory
case documentationDirectory
case documentDirectory
case coreServiceDirectory
case autosavedInformationDirectory
case desktopDirectory
case cachesDirectory
case applicationSupportDirectory
case downloadsDirectory
case inputMethodsDirectory
case moviesDirectory
case musicDirectory
case picturesDirectory
case printerDescriptionDirectory
case sharedPublicDirectory
case preferencePanesDirectory
case applicationScriptsDirectory
case itemReplacementDirectory
case allApplicationsDirectory
case allLibrariesDirectory
case trashDirectory
}
struct SearchPathDomainMask : OptionSet {
init(rawValue rawValue: UInt)
static var userDomainMask: FileManager.SearchPathDomainMask { get }
static var localDomainMask: FileManager.SearchPathDomainMask { get }
static var networkDomainMask: FileManager.SearchPathDomainMask { get }
static var systemDomainMask: FileManager.SearchPathDomainMask { get }
static var allDomainsMask: FileManager.SearchPathDomainMask { get }
}
}
extension FileManager {
func replaceItemAtURL(originalItemURL originalItemURL: NSURL, withItemAtURL newItemURL: NSURL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
func replaceItemAt(_ originalItemURL: URL, withItemAt newItemURL: URL, backupItemName backupItemName: String? = default, options options: FileManager.ItemReplacementOptions = default) throws -> NSURL?
} |
| Declaration | |
|---|---|
| From | func enumerator(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = [], errorHandler handler: (@escaping (URL, Error) -> Bool)? = nil) -> FileManager.DirectoryEnumerator? |
| To | func enumerator(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = [], errorHandler handler: ((URL, Error) -> Bool)? = nil) -> FileManager.DirectoryEnumerator? |
Modified NSData
| Declaration | |
|---|---|
| From | class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
var length: Int { get }
var bytes: UnsafeRawPointer { get }
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: (@escaping (UnsafeMutableRawPointer, Int) -> Swift.Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSData : CKRecordValue {
}
extension NSData {
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
}
extension NSData : CVarArg {
}
extension NSData : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSData {
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
}
extension NSData {
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: (@escaping (UnsafeMutableRawPointer, Int) -> Swift.Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
}
extension NSData {
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
}
extension NSData {
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
}
extension NSData {
} |
| To | class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
var length: Int { get }
var bytes: UnsafeRawPointer { get }
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: ((UnsafeMutableRawPointer, Int) -> Swift.Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSData : CKRecordValue {
}
extension NSData {
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
}
extension NSData : CVarArg {
}
extension NSData : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSData {
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
}
extension NSData {
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: ((UnsafeMutableRawPointer, Int) -> Swift.Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
}
extension NSData {
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
}
extension NSData {
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
}
extension NSData {
} |
| Declaration | |
|---|---|
| From | init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: (@escaping (UnsafeMutableRawPointer, Int) -> Swift.Void)? = nil) |
| To | init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: ((UnsafeMutableRawPointer, Int) -> Swift.Void)? = nil) |
Modified NSDate
| Declaration | |
|---|---|
| From | class NSDate : NSObject, NSCopying, NSSecureCoding {
var timeIntervalSinceReferenceDate: TimeInterval { get }
init()
init(timeIntervalSinceReferenceDate ti: TimeInterval)
init?(coder aDecoder: NSCoder)
class func date() -> Self
convenience init(timeIntervalSinceNow secs: TimeInterval)
class func withTimeInterval(sinceNow secs: TimeInterval) -> Self
class func withTimeInterval(sinceReferenceDate ti: TimeInterval) -> Self
convenience init(timeIntervalSince1970 secs: TimeInterval)
class func withTimeIntervalSince1970(_ secs: TimeInterval) -> Self
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
class func withTimeInterval(_ secsToBeAdded: TimeInterval, since date: Date) -> Self
class var distantFuture: Date { get }
class var distantPast: Date { get }
convenience init(timeIntervalSinceNow secs: TimeInterval)
convenience init(timeIntervalSince1970 secs: TimeInterval)
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
func timeIntervalSince(_ anotherDate: Date) -> TimeInterval
var timeIntervalSinceNow: TimeInterval { get }
var timeIntervalSince1970: TimeInterval { get }
func addTimeInterval(_ seconds: TimeInterval) -> Any
func addingTimeInterval(_ ti: TimeInterval) -> Self
func earlierDate(_ anotherDate: Date) -> Date
func laterDate(_ anotherDate: Date) -> Date
func compare(_ other: Date) -> ComparisonResult
func isEqual(to otherDate: Date) -> Bool
var description: String { get }
func description(with locale: Any?) -> String
class var timeIntervalSinceReferenceDate: TimeInterval { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSDate : CKRecordValue {
}
extension NSDate : CVarArg {
}
extension NSDate : CustomPlaygroundQuickLookable {
var customPlaygroundQuickLook: PlaygroundQuickLook { get }
}
extension NSDate : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSDate {
func timeIntervalSince(_ anotherDate: Date) -> TimeInterval
var timeIntervalSinceNow: TimeInterval { get }
var timeIntervalSince1970: TimeInterval { get }
func addTimeInterval(_ seconds: TimeInterval) -> Any
func addingTimeInterval(_ ti: TimeInterval) -> Self
func earlierDate(_ anotherDate: Date) -> Date
func laterDate(_ anotherDate: Date) -> Date
func compare(_ other: Date) -> ComparisonResult
func isEqual(to otherDate: Date) -> Bool
var description: String { get }
func description(with locale: Any?) -> String
class var timeIntervalSinceReferenceDate: TimeInterval { get }
}
extension NSDate {
class func date() -> Self
convenience init(timeIntervalSinceNow secs: TimeInterval)
class func withTimeInterval(sinceNow secs: TimeInterval) -> Self
class func withTimeInterval(sinceReferenceDate ti: TimeInterval) -> Self
convenience init(timeIntervalSince1970 secs: TimeInterval)
class func withTimeIntervalSince1970(_ secs: TimeInterval) -> Self
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
class func withTimeInterval(_ secsToBeAdded: TimeInterval, since date: Date) -> Self
class var distantFuture: Date { get }
class var distantPast: Date { get }
convenience init(timeIntervalSinceNow secs: TimeInterval)
convenience init(timeIntervalSince1970 secs: TimeInterval)
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
}
extension NSDate : CustomPlaygroundQuickLookable {
var customPlaygroundQuickLook: PlaygroundQuickLook { get }
}
extension NSDate {
} |
| To | class NSDate : NSObject, NSCopying, NSSecureCoding {
var timeIntervalSinceReferenceDate: TimeInterval { get }
init()
init(timeIntervalSinceReferenceDate ti: TimeInterval)
init?(coder aDecoder: NSCoder)
class func date() -> Self
convenience init(timeIntervalSinceNow secs: TimeInterval)
class func withTimeInterval(sinceNow secs: TimeInterval) -> Self
class func withTimeInterval(sinceReferenceDate ti: TimeInterval) -> Self
convenience init(timeIntervalSince1970 secs: TimeInterval)
class func withTimeIntervalSince1970(_ secs: TimeInterval) -> Self
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
class func withTimeInterval(_ secsToBeAdded: TimeInterval, since date: Date) -> Self
class var distantFuture: Date { get }
class var distantPast: Date { get }
convenience init(timeIntervalSinceNow secs: TimeInterval)
convenience init(timeIntervalSince1970 secs: TimeInterval)
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
func timeIntervalSince(_ anotherDate: Date) -> TimeInterval
var timeIntervalSinceNow: TimeInterval { get }
var timeIntervalSince1970: TimeInterval { get }
func addTimeInterval(_ seconds: TimeInterval) -> Any
func addingTimeInterval(_ ti: TimeInterval) -> Self
func earlierDate(_ anotherDate: Date) -> Date
func laterDate(_ anotherDate: Date) -> Date
func compare(_ other: Date) -> ComparisonResult
func isEqual(to otherDate: Date) -> Bool
var description: String { get }
func description(with locale: Any?) -> String
class var timeIntervalSinceReferenceDate: TimeInterval { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSDate : CKRecordValue {
}
extension NSDate : CVarArg {
}
extension NSDate : CustomPlaygroundQuickLookable {
var customPlaygroundQuickLook: PlaygroundQuickLook { get }
}
extension NSDate : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSDate {
func timeIntervalSince(_ anotherDate: Date) -> TimeInterval
var timeIntervalSinceNow: TimeInterval { get }
var timeIntervalSince1970: TimeInterval { get }
func addTimeInterval(_ seconds: TimeInterval) -> Any
func addingTimeInterval(_ ti: TimeInterval) -> Self
func earlierDate(_ anotherDate: Date) -> Date
func laterDate(_ anotherDate: Date) -> Date
func compare(_ other: Date) -> ComparisonResult
func isEqual(to otherDate: Date) -> Bool
var description: String { get }
func description(with locale: Any?) -> String
class var timeIntervalSinceReferenceDate: TimeInterval { get }
}
extension NSDate {
class func date() -> Self
convenience init(timeIntervalSinceNow secs: TimeInterval)
class func withTimeInterval(sinceNow secs: TimeInterval) -> Self
class func withTimeInterval(sinceReferenceDate ti: TimeInterval) -> Self
convenience init(timeIntervalSince1970 secs: TimeInterval)
class func withTimeIntervalSince1970(_ secs: TimeInterval) -> Self
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
class func withTimeInterval(_ secsToBeAdded: TimeInterval, since date: Date) -> Self
class var distantFuture: Date { get }
class var distantPast: Date { get }
convenience init(timeIntervalSinceNow secs: TimeInterval)
convenience init(timeIntervalSince1970 secs: TimeInterval)
convenience init(timeInterval secsToBeAdded: TimeInterval, since date: Date)
}
extension NSDate {
}
extension NSDate : CustomPlaygroundQuickLookable {
var customPlaygroundQuickLook: PlaygroundQuickLook { get }
} |
Modified NSDictionary
| Declaration | |
|---|---|
| From | class NSDictionary : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
var count: Int { get }
func object(forKey aKey: Any) -> Any?
func keyEnumerator() -> NSEnumerator
init()
init(objects objects: UnsafePointer<AnyObject>!, forKeys keys: UnsafePointer<NSCopying>!, count cnt: Int)
init?(coder aDecoder: NSCoder)
@objc(_swiftInitWithDictionary_NSDictionary:) convenience init(dictionary otherDictionary: NSDictionary)
func value(forKey key: String) -> Any?
func fileSize() -> UInt64
func fileModificationDate() -> Date?
func fileType() -> String?
func filePosixPermissions() -> Int
func fileOwnerAccountName() -> String?
func fileGroupOwnerAccountName() -> String?
func fileSystemNumber() -> Int
func fileSystemFileNumber() -> Int
func fileExtensionHidden() -> Bool
func fileHFSCreatorCode() -> OSType
func fileHFSTypeCode() -> OSType
func fileIsImmutable() -> Bool
func fileIsAppendOnly() -> Bool
func fileCreationDate() -> Date?
func fileOwnerAccountID() -> NSNumber?
func fileGroupOwnerAccountID() -> NSNumber?
class func sharedKeySet(forKeys keys: [NSCopying]) -> Any
class func dictionary() -> Self
convenience init(object object: Any, forKey key: NSCopying)
class func withObject(_ object: Any, forKey key: NSCopying) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, forKeys keys: UnsafePointer<NSCopying>!, count cnt: Int) -> Self
convenience init(dictionary dict: [AnyHashable : Any])
class func withDictionary(_ dict: [AnyHashable : Any]) -> Self
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
class func withObjects(_ objects: [Any], forKeys keys: [NSCopying]) -> Self
convenience init(dictionary otherDictionary: [AnyHashable : Any])
convenience init(dictionary otherDictionary: [AnyHashable : Any], copyItems flag: Bool)
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> [AnyHashable : Any]?
init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> [AnyHashable : Any]?
convenience init?(contentsOfFile path: String)
convenience init?(contentsOf url: URL)
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!)
var allKeys: [Any] { get }
func allKeys(for anObject: Any) -> [Any]
var allValues: [Any] { get }
var description: String { get }
var descriptionInStringsFileFormat: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
func isEqual(to otherDictionary: [AnyHashable : Any]) -> Bool
func objectEnumerator() -> NSEnumerator
func objects(forKeys keys: [Any], notFoundMarker marker: Any) -> [Any]
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func keysSortedByValue(using comparator: Selector) -> [Any]
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!, count count: Int)
subscript(_ key: NSCopying) -> Any? { get }
func objectForKeyedSubscript(_ key: NSCopying) -> Any?
func enumerateKeysAndObjects(_ block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateKeysAndObjects(options opts: NSEnumerationOptions = [], using block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func keysSortedByValue(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysSortedByValue(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysOfEntries(passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func keysOfEntries(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSDictionary : NSFetchRequestResult {
}
extension NSDictionary : CVarArg {
}
extension NSDictionary : CustomReflectable {
var customMirror: Mirror { get }
}
extension NSDictionary : ExpressibleByDictionaryLiteral {
required convenience init(dictionaryLiteral elements: (Any, Any)...)
}
extension NSDictionary : Sequence {
final class Iterator : IteratorProtocol {
func next() -> (key: Any, value: Any)?
}
@objc subscript(_ key: Any) -> Any? { get }
func makeIterator() -> NSDictionary.Iterator
}
extension NSDictionary : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSDictionary {
var allKeys: [Any] { get }
func allKeys(for anObject: Any) -> [Any]
var allValues: [Any] { get }
var description: String { get }
var descriptionInStringsFileFormat: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
func isEqual(to otherDictionary: [AnyHashable : Any]) -> Bool
func objectEnumerator() -> NSEnumerator
func objects(forKeys keys: [Any], notFoundMarker marker: Any) -> [Any]
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func keysSortedByValue(using comparator: Selector) -> [Any]
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!, count count: Int)
subscript(_ key: NSCopying) -> Any? { get }
func objectForKeyedSubscript(_ key: NSCopying) -> Any?
func enumerateKeysAndObjects(_ block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateKeysAndObjects(options opts: NSEnumerationOptions = [], using block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func keysSortedByValue(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysSortedByValue(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysOfEntries(passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func keysOfEntries(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
}
extension NSDictionary {
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!)
}
extension NSDictionary {
class func dictionary() -> Self
convenience init(object object: Any, forKey key: NSCopying)
class func withObject(_ object: Any, forKey key: NSCopying) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, forKeys keys: UnsafePointer<NSCopying>!, count cnt: Int) -> Self
convenience init(dictionary dict: [AnyHashable : Any])
class func withDictionary(_ dict: [AnyHashable : Any]) -> Self
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
class func withObjects(_ objects: [Any], forKeys keys: [NSCopying]) -> Self
convenience init(dictionary otherDictionary: [AnyHashable : Any])
convenience init(dictionary otherDictionary: [AnyHashable : Any], copyItems flag: Bool)
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> [AnyHashable : Any]?
init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> [AnyHashable : Any]?
convenience init?(contentsOfFile path: String)
convenience init?(contentsOf url: URL)
}
extension NSDictionary {
class func sharedKeySet(forKeys keys: [NSCopying]) -> Any
}
extension NSDictionary {
func fileSize() -> UInt64
func fileModificationDate() -> Date?
func fileType() -> String?
func filePosixPermissions() -> Int
func fileOwnerAccountName() -> String?
func fileGroupOwnerAccountName() -> String?
func fileSystemNumber() -> Int
func fileSystemFileNumber() -> Int
func fileExtensionHidden() -> Bool
func fileHFSCreatorCode() -> OSType
func fileHFSTypeCode() -> OSType
func fileIsImmutable() -> Bool
func fileIsAppendOnly() -> Bool
func fileCreationDate() -> Date?
func fileOwnerAccountID() -> NSNumber?
func fileGroupOwnerAccountID() -> NSNumber?
}
extension NSDictionary {
func value(forKey key: String) -> Any?
}
extension NSDictionary : ExpressibleByDictionaryLiteral {
required convenience init(dictionaryLiteral elements: (Any, Any)...)
}
extension NSDictionary : Sequence {
final class Iterator : IteratorProtocol {
func next() -> (key: Any, value: Any)?
}
@objc subscript(_ key: Any) -> Any? { get }
func makeIterator() -> NSDictionary.Iterator
}
extension NSDictionary {
@objc(_swiftInitWithDictionary_NSDictionary:) convenience init(dictionary otherDictionary: NSDictionary)
}
extension NSDictionary : CustomReflectable {
var customMirror: Mirror { get }
} |
| To | class NSDictionary : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
var count: Int { get }
func object(forKey aKey: Any) -> Any?
func keyEnumerator() -> NSEnumerator
init()
init(objects objects: UnsafePointer<AnyObject>!, forKeys keys: UnsafePointer<NSCopying>!, count cnt: Int)
init?(coder aDecoder: NSCoder)
@objc(_swiftInitWithDictionary_NSDictionary:) convenience init(dictionary otherDictionary: NSDictionary)
func value(forKey key: String) -> Any?
func fileSize() -> UInt64
func fileModificationDate() -> Date?
func fileType() -> String?
func filePosixPermissions() -> Int
func fileOwnerAccountName() -> String?
func fileGroupOwnerAccountName() -> String?
func fileSystemNumber() -> Int
func fileSystemFileNumber() -> Int
func fileExtensionHidden() -> Bool
func fileHFSCreatorCode() -> OSType
func fileHFSTypeCode() -> OSType
func fileIsImmutable() -> Bool
func fileIsAppendOnly() -> Bool
func fileCreationDate() -> Date?
func fileOwnerAccountID() -> NSNumber?
func fileGroupOwnerAccountID() -> NSNumber?
class func sharedKeySet(forKeys keys: [NSCopying]) -> Any
class func dictionary() -> Self
convenience init(object object: Any, forKey key: NSCopying)
class func withObject(_ object: Any, forKey key: NSCopying) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, forKeys keys: UnsafePointer<NSCopying>!, count cnt: Int) -> Self
convenience init(dictionary dict: [AnyHashable : Any])
class func withDictionary(_ dict: [AnyHashable : Any]) -> Self
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
class func withObjects(_ objects: [Any], forKeys keys: [NSCopying]) -> Self
convenience init(dictionary otherDictionary: [AnyHashable : Any])
convenience init(dictionary otherDictionary: [AnyHashable : Any], copyItems flag: Bool)
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> [AnyHashable : Any]?
init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> [AnyHashable : Any]?
convenience init?(contentsOfFile path: String)
convenience init?(contentsOf url: URL)
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!)
var allKeys: [Any] { get }
func allKeys(for anObject: Any) -> [Any]
var allValues: [Any] { get }
var description: String { get }
var descriptionInStringsFileFormat: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
func isEqual(to otherDictionary: [AnyHashable : Any]) -> Bool
func objectEnumerator() -> NSEnumerator
func objects(forKeys keys: [Any], notFoundMarker marker: Any) -> [Any]
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func keysSortedByValue(using comparator: Selector) -> [Any]
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!, count count: Int)
subscript(_ key: NSCopying) -> Any? { get }
func objectForKeyedSubscript(_ key: NSCopying) -> Any?
func enumerateKeysAndObjects(_ block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateKeysAndObjects(options opts: NSEnumerationOptions = [], using block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func keysSortedByValue(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysSortedByValue(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysOfEntries(passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func keysOfEntries(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSDictionary : NSFetchRequestResult {
}
extension NSDictionary : CVarArg {
}
extension NSDictionary : CustomReflectable {
var customMirror: Mirror { get }
}
extension NSDictionary : ExpressibleByDictionaryLiteral {
required convenience init(dictionaryLiteral elements: (Any, Any)...)
}
extension NSDictionary : Sequence {
final class Iterator : IteratorProtocol {
func next() -> (key: Any, value: Any)?
}
@objc subscript(_ key: Any) -> Any? { get }
func makeIterator() -> NSDictionary.Iterator
}
extension NSDictionary : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSDictionary {
var allKeys: [Any] { get }
func allKeys(for anObject: Any) -> [Any]
var allValues: [Any] { get }
var description: String { get }
var descriptionInStringsFileFormat: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
func isEqual(to otherDictionary: [AnyHashable : Any]) -> Bool
func objectEnumerator() -> NSEnumerator
func objects(forKeys keys: [Any], notFoundMarker marker: Any) -> [Any]
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func keysSortedByValue(using comparator: Selector) -> [Any]
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!, count count: Int)
subscript(_ key: NSCopying) -> Any? { get }
func objectForKeyedSubscript(_ key: NSCopying) -> Any?
func enumerateKeysAndObjects(_ block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateKeysAndObjects(options opts: NSEnumerationOptions = [], using block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func keysSortedByValue(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysSortedByValue(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func keysOfEntries(passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func keysOfEntries(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
}
extension NSDictionary {
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, andKeys keys: AutoreleasingUnsafeMutablePointer<AnyObject>!)
}
extension NSDictionary {
class func dictionary() -> Self
convenience init(object object: Any, forKey key: NSCopying)
class func withObject(_ object: Any, forKey key: NSCopying) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, forKeys keys: UnsafePointer<NSCopying>!, count cnt: Int) -> Self
convenience init(dictionary dict: [AnyHashable : Any])
class func withDictionary(_ dict: [AnyHashable : Any]) -> Self
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
class func withObjects(_ objects: [Any], forKeys keys: [NSCopying]) -> Self
convenience init(dictionary otherDictionary: [AnyHashable : Any])
convenience init(dictionary otherDictionary: [AnyHashable : Any], copyItems flag: Bool)
convenience init(objects objects: [Any], forKeys keys: [NSCopying])
init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> [AnyHashable : Any]?
init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> [AnyHashable : Any]?
convenience init?(contentsOfFile path: String)
convenience init?(contentsOf url: URL)
}
extension NSDictionary {
class func sharedKeySet(forKeys keys: [NSCopying]) -> Any
}
extension NSDictionary {
func fileSize() -> UInt64
func fileModificationDate() -> Date?
func fileType() -> String?
func filePosixPermissions() -> Int
func fileOwnerAccountName() -> String?
func fileGroupOwnerAccountName() -> String?
func fileSystemNumber() -> Int
func fileSystemFileNumber() -> Int
func fileExtensionHidden() -> Bool
func fileHFSCreatorCode() -> OSType
func fileHFSTypeCode() -> OSType
func fileIsImmutable() -> Bool
func fileIsAppendOnly() -> Bool
func fileCreationDate() -> Date?
func fileOwnerAccountID() -> NSNumber?
func fileGroupOwnerAccountID() -> NSNumber?
}
extension NSDictionary {
func value(forKey key: String) -> Any?
}
extension NSDictionary : CustomReflectable {
var customMirror: Mirror { get }
}
extension NSDictionary {
@objc(_swiftInitWithDictionary_NSDictionary:) convenience init(dictionary otherDictionary: NSDictionary)
}
extension NSDictionary : Sequence {
final class Iterator : IteratorProtocol {
func next() -> (key: Any, value: Any)?
}
@objc subscript(_ key: Any) -> Any? { get }
func makeIterator() -> NSDictionary.Iterator
}
extension NSDictionary : ExpressibleByDictionaryLiteral {
required convenience init(dictionaryLiteral elements: (Any, Any)...)
} |
Modified NSError
| Declaration | |
|---|---|
| From | class NSError : NSObject, NSCopying, NSSecureCoding {
init(domain domain: String, code code: Int, userInfo dict: [AnyHashable : Any]? = nil)
class func withDomain(_ domain: String, code code: Int, userInfo dict: [AnyHashable : Any]? = nil) -> Self
var domain: String { get }
var code: Int { get }
var userInfo: [AnyHashable : Any] { get }
var localizedDescription: String { get }
var localizedFailureReason: String? { get }
var localizedRecoverySuggestion: String? { get }
var localizedRecoveryOptions: [String]? { get }
var recoveryAttempter: Any? { get }
var helpAnchor: String? { get }
class func setUserInfoValueProvider(forDomain errorDomain: String, provider provider: (@escaping (Error, String) -> Any?)? = nil)
class func userInfoValueProvider(forDomain errorDomain: String) -> ((Error, String) -> Any?)?
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSError : CVarArg {
}
extension NSError : Error {
}
extension NSError : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSError : Error {
} |
| To | class NSError : NSObject, NSCopying, NSSecureCoding {
init(domain domain: String, code code: Int, userInfo dict: [AnyHashable : Any]? = nil)
class func withDomain(_ domain: String, code code: Int, userInfo dict: [AnyHashable : Any]? = nil) -> Self
var domain: String { get }
var code: Int { get }
var userInfo: [AnyHashable : Any] { get }
var localizedDescription: String { get }
var localizedFailureReason: String? { get }
var localizedRecoverySuggestion: String? { get }
var localizedRecoveryOptions: [String]? { get }
var recoveryAttempter: Any? { get }
var helpAnchor: String? { get }
class func setUserInfoValueProvider(forDomain errorDomain: String, provider provider: ((Error, String) -> Any?)? = nil)
class func userInfoValueProvider(forDomain errorDomain: String) -> ((Error, String) -> Any?)?
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSError : CVarArg {
}
extension NSError : Error {
}
extension NSError : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSError : Error {
} |
Modified NSError.setUserInfoValueProvider(forDomain: String, provider: ((Error, String) -> Any?)?) [class]
| Declaration | |
|---|---|
| From | class func setUserInfoValueProvider(forDomain errorDomain: String, provider provider: (@escaping (Error, String) -> Any?)? = nil) |
| To | class func setUserInfoValueProvider(forDomain errorDomain: String, provider provider: ((Error, String) -> Any?)? = nil) |
Modified NSExtensionContext
| Declaration | |
|---|---|
| From | class NSExtensionContext : NSObject {
var inputItems: [Any] { get }
func completeRequest(returningItems items: [Any]?, completionHandler completionHandler: (@escaping (Bool) -> Swift.Void)? = nil)
func cancelRequest(withError error: Error)
func open(_ URL: URL, completionHandler completionHandler: (@escaping (Bool) -> Swift.Void)? = nil)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSExtensionContext : CVarArg {
}
extension NSExtensionContext : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSExtensionContext {
var hostedViewMinimumAllowedSize: CGSize { get }
var hostedViewMaximumAllowedSize: CGSize { get }
}
extension NSExtensionContext {
var widgetLargestAvailableDisplayMode: NCWidgetDisplayMode
var widgetActiveDisplayMode: NCWidgetDisplayMode { get }
func widgetMaximumSize(for displayMode: NCWidgetDisplayMode) -> CGSize
}
extension NSExtensionContext {
func loadBroadcastingApplicationInfo(completion handler: @escaping (String, String, UIImage?) -> Swift.Void)
func completeRequest(withBroadcast broadcastURL: URL, broadcastConfiguration broadcastConfiguration: RPBroadcastConfiguration, setupInfo setupInfo: [String : NSCoding & NSObjectProtocol]?)
}
extension NSExtensionContext {
func mediaPlayingStarted()
func mediaPlayingPaused()
} |
| To | class NSExtensionContext : NSObject {
var inputItems: [Any] { get }
func completeRequest(returningItems items: [Any]?, completionHandler completionHandler: ((Bool) -> Swift.Void)? = nil)
func cancelRequest(withError error: Error)
func open(_ URL: URL, completionHandler completionHandler: ((Bool) -> Swift.Void)? = nil)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSExtensionContext : CVarArg {
}
extension NSExtensionContext : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSExtensionContext {
var hostedViewMinimumAllowedSize: CGSize { get }
var hostedViewMaximumAllowedSize: CGSize { get }
}
extension NSExtensionContext {
var widgetLargestAvailableDisplayMode: NCWidgetDisplayMode
var widgetActiveDisplayMode: NCWidgetDisplayMode { get }
func widgetMaximumSize(for displayMode: NCWidgetDisplayMode) -> CGSize
}
extension NSExtensionContext {
func loadBroadcastingApplicationInfo(completion handler: @escaping (String, String, UIImage?) -> Swift.Void)
func completeRequest(withBroadcast broadcastURL: URL, broadcastConfiguration broadcastConfiguration: RPBroadcastConfiguration, setupInfo setupInfo: [String : NSCoding & NSObjectProtocol]?)
}
extension NSExtensionContext {
func mediaPlayingStarted()
func mediaPlayingPaused()
} |
| Declaration | |
|---|---|
| From | func completeRequest(returningItems items: [Any]?, completionHandler completionHandler: (@escaping (Bool) -> Swift.Void)? = nil) |
| To | func completeRequest(returningItems items: [Any]?, completionHandler completionHandler: ((Bool) -> Swift.Void)? = nil) |
| Declaration | |
|---|---|
| From | func open(_ URL: URL, completionHandler completionHandler: (@escaping (Bool) -> Swift.Void)? = nil) |
| To | func open(_ URL: URL, completionHandler completionHandler: ((Bool) -> Swift.Void)? = nil) |
Modified NSFileCoordinator
| Declaration | |
|---|---|
| From | class NSFileCoordinator : NSObject {
class func addFilePresenter(_ filePresenter: NSFilePresenter)
class func removeFilePresenter(_ filePresenter: NSFilePresenter)
class var filePresenters: [NSFilePresenter] { get }
init(filePresenter filePresenterOrNil: NSFilePresenter?)
var purposeIdentifier: String
func coordinate(with intents: [NSFileAccessIntent], queue queue: OperationQueue, byAccessor accessor: @escaping (Error?) -> Swift.Void)
func coordinate(readingItemAt url: URL, options options: NSFileCoordinator.ReadingOptions = [], error outError: NSErrorPointer, byAccessor reader: @escaping (URL) -> Swift.Void)
func coordinate(writingItemAt url: URL, options options: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor writer: @escaping (URL) -> Swift.Void)
func coordinate(readingItemAt readingURL: URL, options readingOptions: NSFileCoordinator.ReadingOptions = [], writingItemAt writingURL: URL, options writingOptions: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor readerWriter: @escaping (URL, URL) -> Swift.Void)
func coordinate(writingItemAt url1: URL, options options1: NSFileCoordinator.WritingOptions = [], writingItemAt url2: URL, options options2: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor writer: @escaping (URL, URL) -> Swift.Void)
func prepare(forReadingItemsAt readingURLs: [URL], options readingOptions: NSFileCoordinator.ReadingOptions = [], writingItemsAt writingURLs: [URL], options writingOptions: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor batchAccessor: @escaping (@escaping () -> Swift.Void) -> Swift.Void)
func item(at oldURL: URL, willMoveTo newURL: URL)
func item(at oldURL: URL, didMoveTo newURL: URL)
func cancel()
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var withoutChanges: NSFileCoordinator.ReadingOptions { get }
static var resolvesSymbolicLink: NSFileCoordinator.ReadingOptions { get }
static var immediatelyAvailableMetadataOnly: NSFileCoordinator.ReadingOptions { get }
static var forUploading: NSFileCoordinator.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var forDeleting: NSFileCoordinator.WritingOptions { get }
static var forMoving: NSFileCoordinator.WritingOptions { get }
static var forMerging: NSFileCoordinator.WritingOptions { get }
static var forReplacing: NSFileCoordinator.WritingOptions { get }
static var contentIndependentMetadataOnly: NSFileCoordinator.WritingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSFileCoordinator {
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var withoutChanges: NSFileCoordinator.ReadingOptions { get }
static var resolvesSymbolicLink: NSFileCoordinator.ReadingOptions { get }
static var immediatelyAvailableMetadataOnly: NSFileCoordinator.ReadingOptions { get }
static var forUploading: NSFileCoordinator.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var forDeleting: NSFileCoordinator.WritingOptions { get }
static var forMoving: NSFileCoordinator.WritingOptions { get }
static var forMerging: NSFileCoordinator.WritingOptions { get }
static var forReplacing: NSFileCoordinator.WritingOptions { get }
static var contentIndependentMetadataOnly: NSFileCoordinator.WritingOptions { get }
}
}
extension NSFileCoordinator : CVarArg {
}
extension NSFileCoordinator : Equatable, Hashable {
var hashValue: Int { get }
} |
| To | class NSFileCoordinator : NSObject {
class func addFilePresenter(_ filePresenter: NSFilePresenter)
class func removeFilePresenter(_ filePresenter: NSFilePresenter)
class var filePresenters: [NSFilePresenter] { get }
init(filePresenter filePresenterOrNil: NSFilePresenter?)
var purposeIdentifier: String
func coordinate(with intents: [NSFileAccessIntent], queue queue: OperationQueue, byAccessor accessor: @escaping (Error?) -> Swift.Void)
func coordinate(readingItemAt url: URL, options options: NSFileCoordinator.ReadingOptions = [], error outError: NSErrorPointer, byAccessor reader: @escaping (URL) -> Swift.Void)
func coordinate(writingItemAt url: URL, options options: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor writer: @escaping (URL) -> Swift.Void)
func coordinate(readingItemAt readingURL: URL, options readingOptions: NSFileCoordinator.ReadingOptions = [], writingItemAt writingURL: URL, options writingOptions: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor readerWriter: @escaping (URL, URL) -> Swift.Void)
func coordinate(writingItemAt url1: URL, options options1: NSFileCoordinator.WritingOptions = [], writingItemAt url2: URL, options options2: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor writer: @escaping (URL, URL) -> Swift.Void)
func prepare(forReadingItemsAt readingURLs: [URL], options readingOptions: NSFileCoordinator.ReadingOptions = [], writingItemsAt writingURLs: [URL], options writingOptions: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor batchAccessor: @escaping (() -> Swift.Void) -> Swift.Void)
func item(at oldURL: URL, willMoveTo newURL: URL)
func item(at oldURL: URL, didMoveTo newURL: URL)
func cancel()
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var withoutChanges: NSFileCoordinator.ReadingOptions { get }
static var resolvesSymbolicLink: NSFileCoordinator.ReadingOptions { get }
static var immediatelyAvailableMetadataOnly: NSFileCoordinator.ReadingOptions { get }
static var forUploading: NSFileCoordinator.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var forDeleting: NSFileCoordinator.WritingOptions { get }
static var forMoving: NSFileCoordinator.WritingOptions { get }
static var forMerging: NSFileCoordinator.WritingOptions { get }
static var forReplacing: NSFileCoordinator.WritingOptions { get }
static var contentIndependentMetadataOnly: NSFileCoordinator.WritingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSFileCoordinator {
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var withoutChanges: NSFileCoordinator.ReadingOptions { get }
static var resolvesSymbolicLink: NSFileCoordinator.ReadingOptions { get }
static var immediatelyAvailableMetadataOnly: NSFileCoordinator.ReadingOptions { get }
static var forUploading: NSFileCoordinator.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var forDeleting: NSFileCoordinator.WritingOptions { get }
static var forMoving: NSFileCoordinator.WritingOptions { get }
static var forMerging: NSFileCoordinator.WritingOptions { get }
static var forReplacing: NSFileCoordinator.WritingOptions { get }
static var contentIndependentMetadataOnly: NSFileCoordinator.WritingOptions { get }
}
}
extension NSFileCoordinator : CVarArg {
}
extension NSFileCoordinator : Equatable, Hashable {
var hashValue: Int { get }
} |
| Declaration | |
|---|---|
| From | func prepare(forReadingItemsAt readingURLs: [URL], options readingOptions: NSFileCoordinator.ReadingOptions = [], writingItemsAt writingURLs: [URL], options writingOptions: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor batchAccessor: @escaping (@escaping () -> Swift.Void) -> Swift.Void) |
| To | func prepare(forReadingItemsAt readingURLs: [URL], options readingOptions: NSFileCoordinator.ReadingOptions = [], writingItemsAt writingURLs: [URL], options writingOptions: NSFileCoordinator.WritingOptions = [], error outError: NSErrorPointer, byAccessor batchAccessor: @escaping (() -> Swift.Void) -> Swift.Void) |
Modified NSFilePresenter
| Declaration | |
|---|---|
| From | protocol NSFilePresenter : NSObjectProtocol {
var presentedItemURL: URL? { get }
var presentedItemOperationQueue: OperationQueue { get }
optional var primaryPresentedItemURL: URL? { get }
optional func relinquishPresentedItem(toReader reader: @escaping ((@escaping () -> Swift.Void)?) -> Swift.Void)
optional func relinquishPresentedItem(toWriter writer: @escaping ((@escaping () -> Swift.Void)?) -> Swift.Void)
optional func savePresentedItemChanges(completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
optional func accommodatePresentedItemDeletion(completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
optional func presentedItemDidMove(to newURL: URL)
optional func presentedItemDidChange()
optional func presentedItemDidGain(_ version: NSFileVersion)
optional func presentedItemDidLose(_ version: NSFileVersion)
optional func presentedItemDidResolveConflict(_ version: NSFileVersion)
optional func accommodatePresentedSubitemDeletion(at url: URL, completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
optional func presentedSubitemDidAppear(at url: URL)
optional func presentedSubitem(at oldURL: URL, didMoveTo newURL: URL)
optional func presentedSubitemDidChange(at url: URL)
optional func presentedSubitem(at url: URL, didGain version: NSFileVersion)
optional func presentedSubitem(at url: URL, didLose version: NSFileVersion)
optional func presentedSubitem(at url: URL, didResolve version: NSFileVersion)
} |
| To | protocol NSFilePresenter : NSObjectProtocol {
var presentedItemURL: URL? { get }
var presentedItemOperationQueue: OperationQueue { get }
optional var primaryPresentedItemURL: URL? { get }
optional func relinquishPresentedItem(toReader reader: @escaping ((() -> Swift.Void)?) -> Swift.Void)
optional func relinquishPresentedItem(toWriter writer: @escaping ((() -> Swift.Void)?) -> Swift.Void)
optional func savePresentedItemChanges(completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
optional func accommodatePresentedItemDeletion(completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
optional func presentedItemDidMove(to newURL: URL)
optional func presentedItemDidChange()
optional func presentedItemDidGain(_ version: NSFileVersion)
optional func presentedItemDidLose(_ version: NSFileVersion)
optional func presentedItemDidResolveConflict(_ version: NSFileVersion)
optional func accommodatePresentedSubitemDeletion(at url: URL, completionHandler completionHandler: @escaping (Error?) -> Swift.Void)
optional func presentedSubitemDidAppear(at url: URL)
optional func presentedSubitem(at oldURL: URL, didMoveTo newURL: URL)
optional func presentedSubitemDidChange(at url: URL)
optional func presentedSubitem(at url: URL, didGain version: NSFileVersion)
optional func presentedSubitem(at url: URL, didLose version: NSFileVersion)
optional func presentedSubitem(at url: URL, didResolve version: NSFileVersion)
} |
| Declaration | |
|---|---|
| From | optional func relinquishPresentedItem(toReader reader: @escaping ((@escaping () -> Swift.Void)?) -> Swift.Void) |
| To | optional func relinquishPresentedItem(toReader reader: @escaping ((() -> Swift.Void)?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | optional func relinquishPresentedItem(toWriter writer: @escaping ((@escaping () -> Swift.Void)?) -> Swift.Void) |
| To | optional func relinquishPresentedItem(toWriter writer: @escaping ((() -> Swift.Void)?) -> Swift.Void) |
Modified NSItemProvider
| Declaration | |
|---|---|
| From | class NSItemProvider : NSObject, NSCopying {
init(item item: NSSecureCoding?, typeIdentifier typeIdentifier: String?)
convenience init?(contentsOf fileURL: URL!)
func registerItem(forTypeIdentifier typeIdentifier: String, loadHandler loadHandler: NSItemProvider.LoadHandler)
var registeredTypeIdentifiers: [Any] { get }
func hasItemConformingToTypeIdentifier(_ typeIdentifier: String) -> Bool
func loadItem(forTypeIdentifier typeIdentifier: String, options options: [AnyHashable : Any]? = nil, completionHandler completionHandler: NSItemProvider.CompletionHandler? = nil)
var previewImageHandler: NSItemProvider.LoadHandler?
func loadPreviewImage(options options: [AnyHashable : Any]! = [:], completionHandler completionHandler: NSItemProvider.CompletionHandler!)
class let errorDomain: String
enum ErrorCode : Int {
case unknownError
case itemUnavailableError
case unexpectedValueClassError
case unavailableCoercionError
}
typealias CompletionHandler = (NSSecureCoding?, Error!) -> Swift.Void
typealias LoadHandler = (NSItemProvider.CompletionHandler!, Swift.AnyClass!, [AnyHashable : Any]!) -> Swift.Void
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSItemProvider : CVarArg {
}
extension NSItemProvider : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSItemProvider {
var previewImageHandler: NSItemProvider.LoadHandler?
func loadPreviewImage(options options: [AnyHashable : Any]! = [:], completionHandler completionHandler: NSItemProvider.CompletionHandler!)
}
extension NSItemProvider {
class let errorDomain: String
enum ErrorCode : Int {
case unknownError
case itemUnavailableError
case unexpectedValueClassError
case unavailableCoercionError
}
typealias CompletionHandler = (NSSecureCoding?, Error!) -> Swift.Void
typealias LoadHandler = (NSItemProvider.CompletionHandler!, Swift.AnyClass!, [AnyHashable : Any]!) -> Swift.Void
} |
| To | class NSItemProvider : NSObject, NSCopying {
init(item item: NSSecureCoding?, typeIdentifier typeIdentifier: String?)
convenience init?(contentsOf fileURL: URL!)
func registerItem(forTypeIdentifier typeIdentifier: String, loadHandler loadHandler: @escaping NSItemProvider.LoadHandler)
var registeredTypeIdentifiers: [Any] { get }
func hasItemConformingToTypeIdentifier(_ typeIdentifier: String) -> Bool
func loadItem(forTypeIdentifier typeIdentifier: String, options options: [AnyHashable : Any]? = nil, completionHandler completionHandler: NSItemProvider.CompletionHandler? = nil)
var previewImageHandler: NSItemProvider.LoadHandler?
func loadPreviewImage(options options: [AnyHashable : Any]! = [:], completionHandler completionHandler: NSItemProvider.CompletionHandler!)
class let errorDomain: String
enum ErrorCode : Int {
case unknownError
case itemUnavailableError
case unexpectedValueClassError
case unavailableCoercionError
}
typealias CompletionHandler = (NSSecureCoding?, Error!) -> Swift.Void
typealias LoadHandler = (NSItemProvider.CompletionHandler!, Swift.AnyClass!, [AnyHashable : Any]!) -> Swift.Void
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSItemProvider : CVarArg {
}
extension NSItemProvider : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSItemProvider {
var previewImageHandler: NSItemProvider.LoadHandler?
func loadPreviewImage(options options: [AnyHashable : Any]! = [:], completionHandler completionHandler: NSItemProvider.CompletionHandler!)
}
extension NSItemProvider {
class let errorDomain: String
enum ErrorCode : Int {
case unknownError
case itemUnavailableError
case unexpectedValueClassError
case unavailableCoercionError
}
typealias CompletionHandler = (NSSecureCoding?, Error!) -> Swift.Void
typealias LoadHandler = (NSItemProvider.CompletionHandler!, Swift.AnyClass!, [AnyHashable : Any]!) -> Swift.Void
} |
Modified NSItemProvider.registerItem(forTypeIdentifier: String, loadHandler: NSItemProvider.LoadHandler)
| Declaration | |
|---|---|
| From | func registerItem(forTypeIdentifier typeIdentifier: String, loadHandler loadHandler: NSItemProvider.LoadHandler) |
| To | func registerItem(forTypeIdentifier typeIdentifier: String, loadHandler loadHandler: @escaping NSItemProvider.LoadHandler) |
Modified NSMeasurement
| Declaration | |
|---|---|
| From | class NSMeasurement : NSObject, NSCopying, NSSecureCoding {
@NSCopying var unit: Unit { get }
var doubleValue: Double { get }
convenience init()
init(doubleValue doubleValue: Double, unit unit: Unit)
func canBeConverted(to unit: Unit) -> Bool
func converting(to unit: Unit) -> Measurement<Unit>
func adding(_ measurement: Measurement<Unit>) -> Measurement<Unit>
func subtracting(_ measurement: Measurement<Unit>) -> Measurement<Unit>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSMeasurement : CVarArg {
}
extension NSMeasurement : Equatable, Hashable {
var hashValue: Int { get }
} |
| To | class NSMeasurement : NSObject, NSCopying, NSSecureCoding {
@NSCopying var unit: Unit { get }
var doubleValue: Double { get }
convenience init()
init(doubleValue doubleValue: Double, unit unit: Unit)
func canBeConverted(to unit: Unit) -> Bool
func converting(to unit: Unit) -> Measurement<Unit>
func adding(_ measurement: Measurement<Unit>) -> Measurement<Unit>
func subtracting(_ measurement: Measurement<Unit>) -> Measurement<Unit>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSMeasurement : CVarArg {
}
extension NSMeasurement : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSMeasurement {
} |
Modified NSMutableData
| Declaration | |
|---|---|
| From | class NSMutableData : NSData {
var mutableBytes: UnsafeMutableRawPointer { get }
var length: Int
convenience init?(capacity aNumItems: Int)
class func withCapacity(_ aNumItems: Int) -> Self?
convenience init?(length length: Int)
class func withLength(_ length: Int) -> Self?
init?(capacity capacity: Int)
init?(length length: Int)
func append(_ bytes: UnsafeRawPointer, length length: Int)
func append(_ other: Data)
func increaseLength(by extraLength: Int)
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
func resetBytes(in range: NSRange)
func setData(_ data: Data)
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: (@escaping (UnsafeMutableRawPointer, Int) -> Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSMutableData : CVarArg {
}
extension NSMutableData : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSMutableData {
func append(_ bytes: UnsafeRawPointer, length length: Int)
func append(_ other: Data)
func increaseLength(by extraLength: Int)
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
func resetBytes(in range: NSRange)
func setData(_ data: Data)
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
}
extension NSMutableData {
convenience init?(capacity aNumItems: Int)
class func withCapacity(_ aNumItems: Int) -> Self?
convenience init?(length length: Int)
class func withLength(_ length: Int) -> Self?
init?(capacity capacity: Int)
init?(length length: Int)
} |
| To | class NSMutableData : NSData {
var mutableBytes: UnsafeMutableRawPointer { get }
var length: Int
convenience init?(capacity aNumItems: Int)
class func withCapacity(_ aNumItems: Int) -> Self?
convenience init?(length length: Int)
class func withLength(_ length: Int) -> Self?
init?(capacity capacity: Int)
init?(length length: Int)
func append(_ bytes: UnsafeRawPointer, length length: Int)
func append(_ other: Data)
func increaseLength(by extraLength: Int)
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
func resetBytes(in range: NSRange)
func setData(_ data: Data)
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: ((UnsafeMutableRawPointer, Int) -> Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSMutableData : CVarArg {
}
extension NSMutableData : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSMutableData {
func append(_ bytes: UnsafeRawPointer, length length: Int)
func append(_ other: Data)
func increaseLength(by extraLength: Int)
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
func resetBytes(in range: NSRange)
func setData(_ data: Data)
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
}
extension NSMutableData {
convenience init?(capacity aNumItems: Int)
class func withCapacity(_ aNumItems: Int) -> Self?
convenience init?(length length: Int)
class func withLength(_ length: Int) -> Self?
init?(capacity capacity: Int)
init?(length length: Int)
} |
Modified NSNumber
| Declaration | |
|---|---|
| From | class NSNumber : NSValue {
init?(coder aDecoder: NSCoder)
init(value value: Int8)
init(value value: UInt8)
init(value value: Int16)
init(value value: UInt16)
init(value value: Int32)
init(value value: UInt32)
init(long value: Int)
init(unsignedLong value: UInt)
init(value value: Int64)
init(value value: UInt64)
init(value value: Float)
init(value value: Double)
init(value value: Bool)
init(value value: Int)
init(value value: UInt)
var int8Value: Int8 { get }
var uint8Value: UInt8 { get }
var int16Value: Int16 { get }
var uint16Value: UInt16 { get }
var int32Value: Int32 { get }
var uint32Value: UInt32 { get }
var longValue: Int { get }
var unsignedLongValue: UInt { get }
var int64Value: Int64 { get }
var uint64Value: UInt64 { get }
var floatValue: Float { get }
var doubleValue: Double { get }
var boolValue: Bool { get }
var intValue: Int { get }
var uintValue: UInt { get }
var stringValue: String { get }
func compare(_ otherNumber: NSNumber) -> ComparisonResult
func isEqual(to number: NSNumber) -> Bool
func description(withLocale locale: Any?) -> String
var decimalValue: Decimal { get }
init(char value: Int8)
class func withChar(_ value: Int8) -> NSNumber
init(unsignedChar value: UInt8)
class func withUnsignedChar(_ value: UInt8) -> NSNumber
init(short value: Int16)
class func withShort(_ value: Int16) -> NSNumber
init(unsignedShort value: UInt16)
class func withUnsignedShort(_ value: UInt16) -> NSNumber
init(int value: Int32)
class func withInt(_ value: Int32) -> NSNumber
init(unsignedInt value: UInt32)
class func withUnsignedInt(_ value: UInt32) -> NSNumber
init(long value: Int)
class func withLong(_ value: Int) -> NSNumber
init(unsignedLong value: UInt)
class func withUnsignedLong(_ value: UInt) -> NSNumber
init(longLong value: Int64)
class func withLongLong(_ value: Int64) -> NSNumber
init(unsignedLongLong value: UInt64)
class func withUnsignedLongLong(_ value: UInt64) -> NSNumber
init(float value: Float)
class func withFloat(_ value: Float) -> NSNumber
init(double value: Double)
class func withDouble(_ value: Double) -> NSNumber
init(bool value: Bool)
class func withBool(_ value: Bool) -> NSNumber
init(integer value: Int)
class func withInteger(_ value: Int) -> NSNumber
init(unsignedInteger value: UInt)
class func withUnsignedInteger(_ value: UInt) -> NSNumber
init(range range: NSRange)
class func withRange(_ range: NSRange) -> NSValue
var rangeValue: NSRange { get }
init(nonretainedObject anObject: Any?)
class func withNonretainedObject(_ anObject: Any?) -> NSValue
var nonretainedObjectValue: Any? { get }
init(pointer pointer: UnsafeRawPointer?)
class func withPointer(_ pointer: UnsafeRawPointer?) -> NSValue
var pointerValue: UnsafeMutableRawPointer? { get }
class func withBytes(_ value: UnsafeRawPointer, objCType type: UnsafePointer<Int8>) -> NSValue
init(_ value: UnsafeRawPointer, withObjCType type: UnsafePointer<Int8>)
class func value(_ value: UnsafeRawPointer, withObjCType type: UnsafePointer<Int8>) -> NSValue
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSNumber : CKRecordValue {
}
extension NSNumber : NSFetchRequestResult {
}
extension NSNumber {
var decimalValue: Decimal { get }
}
extension NSNumber : CVarArg {
}
extension NSNumber : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSNumber : ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, ExpressibleByBooleanLiteral {
required convenience init(integerLiteral value: Int)
required convenience init(floatLiteral value: Double)
required convenience init(booleanLiteral value: Bool)
}
extension NSNumber {
init(char value: Int8)
class func withChar(_ value: Int8) -> NSNumber
init(unsignedChar value: UInt8)
class func withUnsignedChar(_ value: UInt8) -> NSNumber
init(short value: Int16)
class func withShort(_ value: Int16) -> NSNumber
init(unsignedShort value: UInt16)
class func withUnsignedShort(_ value: UInt16) -> NSNumber
init(int value: Int32)
class func withInt(_ value: Int32) -> NSNumber
init(unsignedInt value: UInt32)
class func withUnsignedInt(_ value: UInt32) -> NSNumber
init(long value: Int)
class func withLong(_ value: Int) -> NSNumber
init(unsignedLong value: UInt)
class func withUnsignedLong(_ value: UInt) -> NSNumber
init(longLong value: Int64)
class func withLongLong(_ value: Int64) -> NSNumber
init(unsignedLongLong value: UInt64)
class func withUnsignedLongLong(_ value: UInt64) -> NSNumber
init(float value: Float)
class func withFloat(_ value: Float) -> NSNumber
init(double value: Double)
class func withDouble(_ value: Double) -> NSNumber
init(bool value: Bool)
class func withBool(_ value: Bool) -> NSNumber
init(integer value: Int)
class func withInteger(_ value: Int) -> NSNumber
init(unsignedInteger value: UInt)
class func withUnsignedInteger(_ value: UInt) -> NSNumber
}
extension NSNumber : ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, ExpressibleByBooleanLiteral {
required convenience init(integerLiteral value: Int)
required convenience init(floatLiteral value: Double)
required convenience init(booleanLiteral value: Bool)
}
extension NSNumber {
} |
| To | class NSNumber : NSValue {
init?(coder aDecoder: NSCoder)
init(value value: Int8)
init(value value: UInt8)
init(value value: Int16)
init(value value: UInt16)
init(value value: Int32)
init(value value: UInt32)
init(long value: Int)
init(unsignedLong value: UInt)
init(value value: Int64)
init(value value: UInt64)
init(value value: Float)
init(value value: Double)
init(value value: Bool)
init(value value: Int)
init(value value: UInt)
var int8Value: Int8 { get }
var uint8Value: UInt8 { get }
var int16Value: Int16 { get }
var uint16Value: UInt16 { get }
var int32Value: Int32 { get }
var uint32Value: UInt32 { get }
var longValue: Int { get }
var unsignedLongValue: UInt { get }
var int64Value: Int64 { get }
var uint64Value: UInt64 { get }
var floatValue: Float { get }
var doubleValue: Double { get }
var boolValue: Bool { get }
var intValue: Int { get }
var uintValue: UInt { get }
var stringValue: String { get }
func compare(_ otherNumber: NSNumber) -> ComparisonResult
func isEqual(to number: NSNumber) -> Bool
func description(withLocale locale: Any?) -> String
var decimalValue: Decimal { get }
init(char value: Int8)
class func withChar(_ value: Int8) -> NSNumber
init(unsignedChar value: UInt8)
class func withUnsignedChar(_ value: UInt8) -> NSNumber
init(short value: Int16)
class func withShort(_ value: Int16) -> NSNumber
init(unsignedShort value: UInt16)
class func withUnsignedShort(_ value: UInt16) -> NSNumber
init(int value: Int32)
class func withInt(_ value: Int32) -> NSNumber
init(unsignedInt value: UInt32)
class func withUnsignedInt(_ value: UInt32) -> NSNumber
init(long value: Int)
class func withLong(_ value: Int) -> NSNumber
init(unsignedLong value: UInt)
class func withUnsignedLong(_ value: UInt) -> NSNumber
init(longLong value: Int64)
class func withLongLong(_ value: Int64) -> NSNumber
init(unsignedLongLong value: UInt64)
class func withUnsignedLongLong(_ value: UInt64) -> NSNumber
init(float value: Float)
class func withFloat(_ value: Float) -> NSNumber
init(double value: Double)
class func withDouble(_ value: Double) -> NSNumber
init(bool value: Bool)
class func withBool(_ value: Bool) -> NSNumber
init(integer value: Int)
class func withInteger(_ value: Int) -> NSNumber
init(unsignedInteger value: UInt)
class func withUnsignedInteger(_ value: UInt) -> NSNumber
init(range range: NSRange)
class func withRange(_ range: NSRange) -> NSValue
var rangeValue: NSRange { get }
init(nonretainedObject anObject: Any?)
class func withNonretainedObject(_ anObject: Any?) -> NSValue
var nonretainedObjectValue: Any? { get }
init(pointer pointer: UnsafeRawPointer?)
class func withPointer(_ pointer: UnsafeRawPointer?) -> NSValue
var pointerValue: UnsafeMutableRawPointer? { get }
class func withBytes(_ value: UnsafeRawPointer, objCType type: UnsafePointer<Int8>) -> NSValue
init(_ value: UnsafeRawPointer, withObjCType type: UnsafePointer<Int8>)
class func value(_ value: UnsafeRawPointer, withObjCType type: UnsafePointer<Int8>) -> NSValue
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSNumber : CKRecordValue {
}
extension NSNumber : NSFetchRequestResult {
}
extension NSNumber {
var decimalValue: Decimal { get }
}
extension NSNumber : CVarArg {
}
extension NSNumber : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSNumber : ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, ExpressibleByBooleanLiteral {
required convenience init(integerLiteral value: Int)
required convenience init(floatLiteral value: Double)
required convenience init(booleanLiteral value: Bool)
}
extension NSNumber {
init(char value: Int8)
class func withChar(_ value: Int8) -> NSNumber
init(unsignedChar value: UInt8)
class func withUnsignedChar(_ value: UInt8) -> NSNumber
init(short value: Int16)
class func withShort(_ value: Int16) -> NSNumber
init(unsignedShort value: UInt16)
class func withUnsignedShort(_ value: UInt16) -> NSNumber
init(int value: Int32)
class func withInt(_ value: Int32) -> NSNumber
init(unsignedInt value: UInt32)
class func withUnsignedInt(_ value: UInt32) -> NSNumber
init(long value: Int)
class func withLong(_ value: Int) -> NSNumber
init(unsignedLong value: UInt)
class func withUnsignedLong(_ value: UInt) -> NSNumber
init(longLong value: Int64)
class func withLongLong(_ value: Int64) -> NSNumber
init(unsignedLongLong value: UInt64)
class func withUnsignedLongLong(_ value: UInt64) -> NSNumber
init(float value: Float)
class func withFloat(_ value: Float) -> NSNumber
init(double value: Double)
class func withDouble(_ value: Double) -> NSNumber
init(bool value: Bool)
class func withBool(_ value: Bool) -> NSNumber
init(integer value: Int)
class func withInteger(_ value: Int) -> NSNumber
init(unsignedInteger value: UInt)
class func withUnsignedInteger(_ value: UInt) -> NSNumber
}
extension NSNumber {
}
extension NSNumber : ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, ExpressibleByBooleanLiteral {
required convenience init(integerLiteral value: Int)
required convenience init(floatLiteral value: Double)
required convenience init(booleanLiteral value: Bool)
} |
Modified NSOrderedSet
| Declaration | |
|---|---|
| From | class NSOrderedSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
var count: Int { get }
func object(at idx: Int) -> Any
func index(of object: Any) -> Int
init()
init(objects objects: UnsafePointer<AnyObject>!, count cnt: Int)
init?(coder aDecoder: NSCoder)
convenience init(objects elements: Any...)
func filtered(using p: NSPredicate) -> NSOrderedSet
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
class func orderedSet() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(orderedSet set: NSOrderedSet)
class func withOrderedSet(_ set: NSOrderedSet) -> Self
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
class func withOrderedSet(_ set: NSOrderedSet, range range: NSRange, copyItems flag: Bool) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(array array: [Any], range range: NSRange, copyItems flag: Bool)
class func withArray(_ array: [Any], range range: NSRange, copyItems flag: Bool) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
class func withSet(_ set: Set<AnyHashable>, copyItems flag: Bool) -> Self
convenience init(object object: Any)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
convenience init(array array: [Any])
convenience init(array set: [Any], copyItems flag: Bool)
convenience init(array set: [Any], range range: NSRange, copyItems flag: Bool)
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, range range: NSRange)
func objects(at indexes: IndexSet) -> [Any]
var firstObject: Any? { get }
var lastObject: Any? { get }
func isEqual(to other: NSOrderedSet) -> Bool
func contains(_ object: Any) -> Bool
func intersects(_ other: NSOrderedSet) -> Bool
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
func isSubset(of other: NSOrderedSet) -> Bool
func isSubset(of set: Set<AnyHashable>) -> Bool
subscript(_ idx: Int) -> Any { get }
func objectAtIndexedSubscript(_ idx: Int) -> Any
func objectEnumerator() -> NSEnumerator
func reverseObjectEnumerator() -> NSEnumerator
@NSCopying var reversed: NSOrderedSet { get }
var array: [Any] { get }
var set: Set<AnyHashable> { get }
func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(at s: IndexSet, options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func index(ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(_ opts: NSEnumerationOptions = [], ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(ofObjectAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func indexes(ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(options opts: NSEnumerationOptions = [], ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(ofObjectsAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func index(of object: Any, inSortedRange range: NSRange, options opts: NSBinarySearchingOptions = [], usingComparator cmp: (Any, Any) -> ComparisonResult) -> Int
func sortedArray(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func sortedArray(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
var description: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSOrderedSet {
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
}
extension NSOrderedSet {
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
}
extension NSOrderedSet : CVarArg {
}
extension NSOrderedSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSOrderedSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
}
extension NSOrderedSet : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSOrderedSet {
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, range range: NSRange)
func objects(at indexes: IndexSet) -> [Any]
var firstObject: Any? { get }
var lastObject: Any? { get }
func isEqual(to other: NSOrderedSet) -> Bool
func contains(_ object: Any) -> Bool
func intersects(_ other: NSOrderedSet) -> Bool
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
func isSubset(of other: NSOrderedSet) -> Bool
func isSubset(of set: Set<AnyHashable>) -> Bool
subscript(_ idx: Int) -> Any { get }
func objectAtIndexedSubscript(_ idx: Int) -> Any
func objectEnumerator() -> NSEnumerator
func reverseObjectEnumerator() -> NSEnumerator
@NSCopying var reversed: NSOrderedSet { get }
var array: [Any] { get }
var set: Set<AnyHashable> { get }
func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(at s: IndexSet, options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func index(ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(_ opts: NSEnumerationOptions = [], ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(ofObjectAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func indexes(ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(options opts: NSEnumerationOptions = [], ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(ofObjectsAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func index(of object: Any, inSortedRange range: NSRange, options opts: NSBinarySearchingOptions = [], usingComparator cmp: (Any, Any) -> ComparisonResult) -> Int
func sortedArray(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func sortedArray(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
var description: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
}
extension NSOrderedSet {
class func orderedSet() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(orderedSet set: NSOrderedSet)
class func withOrderedSet(_ set: NSOrderedSet) -> Self
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
class func withOrderedSet(_ set: NSOrderedSet, range range: NSRange, copyItems flag: Bool) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(array array: [Any], range range: NSRange, copyItems flag: Bool)
class func withArray(_ array: [Any], range range: NSRange, copyItems flag: Bool) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
class func withSet(_ set: Set<AnyHashable>, copyItems flag: Bool) -> Self
convenience init(object object: Any)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
convenience init(array array: [Any])
convenience init(array set: [Any], copyItems flag: Bool)
convenience init(array set: [Any], range range: NSRange, copyItems flag: Bool)
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
}
extension NSOrderedSet {
func filtered(using p: NSPredicate) -> NSOrderedSet
}
extension NSOrderedSet {
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
}
extension NSOrderedSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSOrderedSet {
convenience init(objects elements: Any...)
}
extension NSOrderedSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
} |
| To | class NSOrderedSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
var count: Int { get }
func object(at idx: Int) -> Any
func index(of object: Any) -> Int
init()
init(objects objects: UnsafePointer<AnyObject>!, count cnt: Int)
init?(coder aDecoder: NSCoder)
convenience init(objects elements: Any...)
func filtered(using p: NSPredicate) -> NSOrderedSet
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
class func orderedSet() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(orderedSet set: NSOrderedSet)
class func withOrderedSet(_ set: NSOrderedSet) -> Self
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
class func withOrderedSet(_ set: NSOrderedSet, range range: NSRange, copyItems flag: Bool) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(array array: [Any], range range: NSRange, copyItems flag: Bool)
class func withArray(_ array: [Any], range range: NSRange, copyItems flag: Bool) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
class func withSet(_ set: Set<AnyHashable>, copyItems flag: Bool) -> Self
convenience init(object object: Any)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
convenience init(array array: [Any])
convenience init(array set: [Any], copyItems flag: Bool)
convenience init(array set: [Any], range range: NSRange, copyItems flag: Bool)
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, range range: NSRange)
func objects(at indexes: IndexSet) -> [Any]
var firstObject: Any? { get }
var lastObject: Any? { get }
func isEqual(to other: NSOrderedSet) -> Bool
func contains(_ object: Any) -> Bool
func intersects(_ other: NSOrderedSet) -> Bool
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
func isSubset(of other: NSOrderedSet) -> Bool
func isSubset(of set: Set<AnyHashable>) -> Bool
subscript(_ idx: Int) -> Any { get }
func objectAtIndexedSubscript(_ idx: Int) -> Any
func objectEnumerator() -> NSEnumerator
func reverseObjectEnumerator() -> NSEnumerator
@NSCopying var reversed: NSOrderedSet { get }
var array: [Any] { get }
var set: Set<AnyHashable> { get }
func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(at s: IndexSet, options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func index(ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(_ opts: NSEnumerationOptions = [], ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(ofObjectAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func indexes(ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(options opts: NSEnumerationOptions = [], ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(ofObjectsAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func index(of object: Any, inSortedRange range: NSRange, options opts: NSBinarySearchingOptions = [], usingComparator cmp: (Any, Any) -> ComparisonResult) -> Int
func sortedArray(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func sortedArray(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
var description: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSOrderedSet {
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
}
extension NSOrderedSet {
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
}
extension NSOrderedSet : CVarArg {
}
extension NSOrderedSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSOrderedSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
}
extension NSOrderedSet : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSOrderedSet {
func getObjects(_ objects: AutoreleasingUnsafeMutablePointer<AnyObject>!, range range: NSRange)
func objects(at indexes: IndexSet) -> [Any]
var firstObject: Any? { get }
var lastObject: Any? { get }
func isEqual(to other: NSOrderedSet) -> Bool
func contains(_ object: Any) -> Bool
func intersects(_ other: NSOrderedSet) -> Bool
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
func isSubset(of other: NSOrderedSet) -> Bool
func isSubset(of set: Set<AnyHashable>) -> Bool
subscript(_ idx: Int) -> Any { get }
func objectAtIndexedSubscript(_ idx: Int) -> Any
func objectEnumerator() -> NSEnumerator
func reverseObjectEnumerator() -> NSEnumerator
@NSCopying var reversed: NSOrderedSet { get }
var array: [Any] { get }
var set: Set<AnyHashable> { get }
func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(at s: IndexSet, options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func index(ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(_ opts: NSEnumerationOptions = [], ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(ofObjectAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func indexes(ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(options opts: NSEnumerationOptions = [], ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(ofObjectsAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func index(of object: Any, inSortedRange range: NSRange, options opts: NSBinarySearchingOptions = [], usingComparator cmp: (Any, Any) -> ComparisonResult) -> Int
func sortedArray(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func sortedArray(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
var description: String { get }
func description(withLocale locale: Any?) -> String
func description(withLocale locale: Any?, indent level: Int) -> String
}
extension NSOrderedSet {
class func orderedSet() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(orderedSet set: NSOrderedSet)
class func withOrderedSet(_ set: NSOrderedSet) -> Self
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
class func withOrderedSet(_ set: NSOrderedSet, range range: NSRange, copyItems flag: Bool) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(array array: [Any], range range: NSRange, copyItems flag: Bool)
class func withArray(_ array: [Any], range range: NSRange, copyItems flag: Bool) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
class func withSet(_ set: Set<AnyHashable>, copyItems flag: Bool) -> Self
convenience init(object object: Any)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range range: NSRange, copyItems flag: Bool)
convenience init(array array: [Any])
convenience init(array set: [Any], copyItems flag: Bool)
convenience init(array set: [Any], range range: NSRange, copyItems flag: Bool)
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
}
extension NSOrderedSet {
func filtered(using p: NSPredicate) -> NSOrderedSet
}
extension NSOrderedSet {
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
}
extension NSOrderedSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
}
extension NSOrderedSet {
convenience init(objects elements: Any...)
}
extension NSOrderedSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
} |
Modified NSPointerFunctions
| Declaration | |
|---|---|
| From | class NSPointerFunctions : NSObject, NSCopying {
init(options options: NSPointerFunctions.Options = [])
class func withOptions(_ options: NSPointerFunctions.Options = []) -> NSPointerFunctions
var hashFunction: ((UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?) -> Int)?
var isEqualFunction: ((UnsafeRawPointer, UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?) -> ObjCBool)?
var sizeFunction: ((UnsafeRawPointer) -> Int)?
var descriptionFunction: ((UnsafeRawPointer) -> String?)?
var relinquishFunction: ((UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?) -> Swift.Void)?
var acquireFunction: ((UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?, ObjCBool) -> UnsafeMutableRawPointer)?
var usesStrongWriteBarrier: Bool
var usesWeakReadAndWriteBarriers: Bool
struct Options : OptionSet {
init(rawValue rawValue: UInt)
static var strongMemory: NSPointerFunctions.Options { get }
static var opaqueMemory: NSPointerFunctions.Options { get }
static var mallocMemory: NSPointerFunctions.Options { get }
static var machVirtualMemory: NSPointerFunctions.Options { get }
static var weakMemory: NSPointerFunctions.Options { get }
static var objectPersonality: NSPointerFunctions.Options { get }
static var opaquePersonality: NSPointerFunctions.Options { get }
static var objectPointerPersonality: NSPointerFunctions.Options { get }
static var cStringPersonality: NSPointerFunctions.Options { get }
static var structPersonality: NSPointerFunctions.Options { get }
static var integerPersonality: NSPointerFunctions.Options { get }
static var copyIn: NSPointerFunctions.Options { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSPointerFunctions {
struct Options : OptionSet {
init(rawValue rawValue: UInt)
static var strongMemory: NSPointerFunctions.Options { get }
static var opaqueMemory: NSPointerFunctions.Options { get }
static var mallocMemory: NSPointerFunctions.Options { get }
static var machVirtualMemory: NSPointerFunctions.Options { get }
static var weakMemory: NSPointerFunctions.Options { get }
static var objectPersonality: NSPointerFunctions.Options { get }
static var opaquePersonality: NSPointerFunctions.Options { get }
static var objectPointerPersonality: NSPointerFunctions.Options { get }
static var cStringPersonality: NSPointerFunctions.Options { get }
static var structPersonality: NSPointerFunctions.Options { get }
static var integerPersonality: NSPointerFunctions.Options { get }
static var copyIn: NSPointerFunctions.Options { get }
}
}
extension NSPointerFunctions : CVarArg {
}
extension NSPointerFunctions : Equatable, Hashable {
var hashValue: Int { get }
} |
| To | class NSPointerFunctions : NSObject, NSCopying {
init(options options: NSPointerFunctions.Options = [])
class func withOptions(_ options: NSPointerFunctions.Options = []) -> NSPointerFunctions
var hashFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?) -> Int)?
var isEqualFunction: ((UnsafeRawPointer, UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?) -> ObjCBool)?
var sizeFunction: ((UnsafeRawPointer) -> Int)?
var descriptionFunction: ((UnsafeRawPointer) -> String?)?
var relinquishFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?) -> Swift.Void)?
var acquireFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?, ObjCBool) -> UnsafeMutableRawPointer)?
var usesStrongWriteBarrier: Bool
var usesWeakReadAndWriteBarriers: Bool
struct Options : OptionSet {
init(rawValue rawValue: UInt)
static var strongMemory: NSPointerFunctions.Options { get }
static var opaqueMemory: NSPointerFunctions.Options { get }
static var mallocMemory: NSPointerFunctions.Options { get }
static var machVirtualMemory: NSPointerFunctions.Options { get }
static var weakMemory: NSPointerFunctions.Options { get }
static var objectPersonality: NSPointerFunctions.Options { get }
static var opaquePersonality: NSPointerFunctions.Options { get }
static var objectPointerPersonality: NSPointerFunctions.Options { get }
static var cStringPersonality: NSPointerFunctions.Options { get }
static var structPersonality: NSPointerFunctions.Options { get }
static var integerPersonality: NSPointerFunctions.Options { get }
static var copyIn: NSPointerFunctions.Options { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSPointerFunctions {
struct Options : OptionSet {
init(rawValue rawValue: UInt)
static var strongMemory: NSPointerFunctions.Options { get }
static var opaqueMemory: NSPointerFunctions.Options { get }
static var mallocMemory: NSPointerFunctions.Options { get }
static var machVirtualMemory: NSPointerFunctions.Options { get }
static var weakMemory: NSPointerFunctions.Options { get }
static var objectPersonality: NSPointerFunctions.Options { get }
static var opaquePersonality: NSPointerFunctions.Options { get }
static var objectPointerPersonality: NSPointerFunctions.Options { get }
static var cStringPersonality: NSPointerFunctions.Options { get }
static var structPersonality: NSPointerFunctions.Options { get }
static var integerPersonality: NSPointerFunctions.Options { get }
static var copyIn: NSPointerFunctions.Options { get }
}
}
extension NSPointerFunctions : CVarArg {
}
extension NSPointerFunctions : Equatable, Hashable {
var hashValue: Int { get }
} |
Modified NSPointerFunctions.acquireFunction
| Declaration | |
|---|---|
| From | var acquireFunction: ((UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?, ObjCBool) -> UnsafeMutableRawPointer)? |
| To | var acquireFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?, ObjCBool) -> UnsafeMutableRawPointer)? |
Modified NSPointerFunctions.hashFunction
| Declaration | |
|---|---|
| From | var hashFunction: ((UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?) -> Int)? |
| To | var hashFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?) -> Int)? |
Modified NSPointerFunctions.isEqualFunction
| Declaration | |
|---|---|
| From | var isEqualFunction: ((UnsafeRawPointer, UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?) -> ObjCBool)? |
| To | var isEqualFunction: ((UnsafeRawPointer, UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?) -> ObjCBool)? |
| Declaration | |
|---|---|
| From | var relinquishFunction: ((UnsafeRawPointer, (@escaping (UnsafeRawPointer) -> Int)?) -> Swift.Void)? |
| To | var relinquishFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?) -> Swift.Void)? |
Modified NSPurgeableData
| Declaration | |
|---|---|
| From | class NSPurgeableData : NSMutableData, NSDiscardableContent {
convenience init?(capacity aNumItems: Int)
class func withCapacity(_ aNumItems: Int) -> Self?
convenience init?(length length: Int)
class func withLength(_ length: Int) -> Self?
init?(capacity capacity: Int)
init?(length length: Int)
func append(_ bytes: UnsafeRawPointer, length length: Int)
func append(_ other: Data)
func increaseLength(by extraLength: Int)
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
func resetBytes(in range: NSRange)
func setData(_ data: Data)
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: (@escaping (UnsafeMutableRawPointer, Int) -> Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSPurgeableData : CVarArg {
}
extension NSPurgeableData : Equatable, Hashable {
var hashValue: Int { get }
} |
| To | class NSPurgeableData : NSMutableData, NSDiscardableContent {
convenience init?(capacity aNumItems: Int)
class func withCapacity(_ aNumItems: Int) -> Self?
convenience init?(length length: Int)
class func withLength(_ length: Int) -> Self?
init?(capacity capacity: Int)
init?(length length: Int)
func append(_ bytes: UnsafeRawPointer, length length: Int)
func append(_ other: Data)
func increaseLength(by extraLength: Int)
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
func resetBytes(in range: NSRange)
func setData(_ data: Data)
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer)
class func dataWithContentsOfMappedFile(_ path: String) -> Any?
init?(contentsOfMappedFile path: String)
init?(base64Encoding base64String: String)
func base64Encoding() -> String
init?(base64Encoded base64String: String, options options: NSData.Base64DecodingOptions = [])
func base64EncodedString(options options: NSData.Base64EncodingOptions = []) -> String
init?(base64Encoded base64Data: Data, options options: NSData.Base64DecodingOptions = [])
func base64EncodedData(options options: NSData.Base64EncodingOptions = []) -> Data
class func data() -> Self
convenience init(bytes bytes: UnsafeRawPointer?, length length: Int)
class func withBytes(_ bytes: UnsafeRawPointer?, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int) -> Self
convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
class func withBytesNoCopy(_ bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool) -> Self
convenience init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOfFile(_ path: String, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
class func withContentsOf(_ url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws -> Self
convenience init?(contentsOfFile path: String)
class func withContentsOfFile(_ path: String) -> Self?
convenience init?(contentsOf url: URL)
class func withContentsOf(_ url: URL) -> Self?
init(bytes bytes: UnsafeRawPointer?, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, freeWhenDone b: Bool)
init(bytesNoCopy bytes: UnsafeMutableRawPointer, length length: Int, deallocator deallocator: ((UnsafeMutableRawPointer, Int) -> Void)? = nil)
init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws
init(contentsOf url: URL, options readOptionsMask: NSData.ReadingOptions = []) throws
init?(contentsOfFile path: String)
init?(contentsOf url: URL)
init(data data: Data)
class func withData(_ data: Data) -> Self
var description: String { get }
func getBytes(_ buffer: UnsafeMutableRawPointer, length length: Int)
func getBytes(_ buffer: UnsafeMutableRawPointer, range range: NSRange)
func isEqual(to other: Data) -> Bool
func subdata(with range: NSRange) -> Data
func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
func write(to url: URL, atomically atomically: Bool) -> Bool
func write(toFile path: String, options writeOptionsMask: NSData.WritingOptions = []) throws
func write(to url: URL, options writeOptionsMask: NSData.WritingOptions = []) throws
func range(of dataToFind: Data, options mask: NSData.SearchOptions = [], in searchRange: NSRange) -> NSRange
func enumerateBytes(_ block: (UnsafeRawPointer, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
struct ReadingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var mappedIfSafe: NSData.ReadingOptions { get }
static var uncached: NSData.ReadingOptions { get }
static var alwaysMapped: NSData.ReadingOptions { get }
static var dataReadingMapped: NSData.ReadingOptions { get }
static var mappedRead: NSData.ReadingOptions { get }
static var uncachedRead: NSData.ReadingOptions { get }
}
struct WritingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var atomic: NSData.WritingOptions { get }
static var withoutOverwriting: NSData.WritingOptions { get }
static var noFileProtection: NSData.WritingOptions { get }
static var completeFileProtection: NSData.WritingOptions { get }
static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
static var fileProtectionMask: NSData.WritingOptions { get }
static var atomicWrite: NSData.WritingOptions { get }
}
struct SearchOptions : OptionSet {
init(rawValue rawValue: UInt)
static var backwards: NSData.SearchOptions { get }
static var anchored: NSData.SearchOptions { get }
}
struct Base64EncodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var lineLength64Characters: NSData.Base64EncodingOptions { get }
static var lineLength76Characters: NSData.Base64EncodingOptions { get }
static var endLineWithCarriageReturn: NSData.Base64EncodingOptions { get }
static var endLineWithLineFeed: NSData.Base64EncodingOptions { get }
}
struct Base64DecodingOptions : OptionSet {
init(rawValue rawValue: UInt)
static var ignoreUnknownCharacters: NSData.Base64DecodingOptions { get }
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSPurgeableData : CVarArg {
}
extension NSPurgeableData : Equatable, Hashable {
var hashValue: Int { get }
} |
Modified NSSet
| Declaration | |
|---|---|
| From | class NSSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
var count: Int { get }
func member(_ object: Any) -> Any?
func objectEnumerator() -> NSEnumerator
init()
init(objects objects: UnsafePointer<AnyObject>!, count cnt: Int)
init?(coder aDecoder: NSCoder)
convenience init(objects elements: Any...)
@nonobjc convenience init(set anSet: NSSet)
func filtered(using predicate: NSPredicate) -> Set<AnyHashable>
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
class func set() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
convenience init(array array: [Any])
var allObjects: [Any] { get }
func anyObject() -> Any?
func contains(_ anObject: Any) -> Bool
var description: String { get }
func description(withLocale locale: Any?) -> String
func intersects(_ otherSet: Set<AnyHashable>) -> Bool
func isEqual(to otherSet: Set<AnyHashable>) -> Bool
func isSubset(of otherSet: Set<AnyHashable>) -> Bool
func makeObjectsPerform(_ aSelector: Selector)
func makeObjectsPerform(_ aSelector: Selector, with argument: Any?)
func adding(_ anObject: Any) -> Set<AnyHashable>
func addingObjects(from other: Set<AnyHashable>) -> Set<AnyHashable>
func addingObjects(from other: [Any]) -> Set<AnyHashable>
func enumerateObjects(_ block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func objects(passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func objects(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSSet {
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
}
extension NSSet {
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
}
extension NSSet {
func filtered(using predicate: NSPredicate) -> Set<AnyHashable>
}
extension NSSet : CVarArg {
}
extension NSSet : CustomReflectable {
var customMirror: Mirror { get }
}
extension NSSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
}
extension NSSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSSet : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSSet {
var allObjects: [Any] { get }
func anyObject() -> Any?
func contains(_ anObject: Any) -> Bool
var description: String { get }
func description(withLocale locale: Any?) -> String
func intersects(_ otherSet: Set<AnyHashable>) -> Bool
func isEqual(to otherSet: Set<AnyHashable>) -> Bool
func isSubset(of otherSet: Set<AnyHashable>) -> Bool
func makeObjectsPerform(_ aSelector: Selector)
func makeObjectsPerform(_ aSelector: Selector, with argument: Any?)
func adding(_ anObject: Any) -> Set<AnyHashable>
func addingObjects(from other: Set<AnyHashable>) -> Set<AnyHashable>
func addingObjects(from other: [Any]) -> Set<AnyHashable>
func enumerateObjects(_ block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func objects(passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func objects(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
}
extension NSSet {
class func set() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
convenience init(array array: [Any])
}
extension NSSet {
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
}
extension NSSet : CustomReflectable {
var customMirror: Mirror { get }
}
extension NSSet {
@nonobjc convenience init(set anSet: NSSet)
}
extension NSSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSSet {
convenience init(objects elements: Any...)
}
extension NSSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
} |
| To | class NSSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
var count: Int { get }
func member(_ object: Any) -> Any?
func objectEnumerator() -> NSEnumerator
init()
init(objects objects: UnsafePointer<AnyObject>!, count cnt: Int)
init?(coder aDecoder: NSCoder)
convenience init(objects elements: Any...)
@nonobjc convenience init(set anSet: NSSet)
func filtered(using predicate: NSPredicate) -> Set<AnyHashable>
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
class func set() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
convenience init(array array: [Any])
var allObjects: [Any] { get }
func anyObject() -> Any?
func contains(_ anObject: Any) -> Bool
var description: String { get }
func description(withLocale locale: Any?) -> String
func intersects(_ otherSet: Set<AnyHashable>) -> Bool
func isEqual(to otherSet: Set<AnyHashable>) -> Bool
func isSubset(of otherSet: Set<AnyHashable>) -> Bool
func makeObjectsPerform(_ aSelector: Selector)
func makeObjectsPerform(_ aSelector: Selector, with argument: Any?)
func adding(_ anObject: Any) -> Set<AnyHashable>
func addingObjects(from other: Set<AnyHashable>) -> Set<AnyHashable>
func addingObjects(from other: [Any]) -> Set<AnyHashable>
func enumerateObjects(_ block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func objects(passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func objects(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSSet {
func value(forKey key: String) -> Any
func setValue(_ value: Any?, forKey key: String)
}
extension NSSet {
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
}
extension NSSet {
func filtered(using predicate: NSPredicate) -> Set<AnyHashable>
}
extension NSSet : CVarArg {
}
extension NSSet : CustomReflectable {
var customMirror: Mirror { get }
}
extension NSSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
}
extension NSSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSSet : Equatable, Hashable {
var hashValue: Int { get }
}
extension NSSet {
var allObjects: [Any] { get }
func anyObject() -> Any?
func contains(_ anObject: Any) -> Bool
var description: String { get }
func description(withLocale locale: Any?) -> String
func intersects(_ otherSet: Set<AnyHashable>) -> Bool
func isEqual(to otherSet: Set<AnyHashable>) -> Bool
func isSubset(of otherSet: Set<AnyHashable>) -> Bool
func makeObjectsPerform(_ aSelector: Selector)
func makeObjectsPerform(_ aSelector: Selector, with argument: Any?)
func adding(_ anObject: Any) -> Set<AnyHashable>
func addingObjects(from other: Set<AnyHashable>) -> Set<AnyHashable>
func addingObjects(from other: [Any]) -> Set<AnyHashable>
func enumerateObjects(_ block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func objects(passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
func objects(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>
}
extension NSSet {
class func set() -> Self
convenience init(object object: Any)
class func withObject(_ object: Any) -> Self
class func withObjects(_ objects: UnsafePointer<AnyObject>!, count cnt: Int) -> Self
convenience init(set set: Set<AnyHashable>)
class func withSet(_ set: Set<AnyHashable>) -> Self
convenience init(array array: [Any])
class func withArray(_ array: [Any]) -> Self
convenience init(set set: Set<AnyHashable>)
convenience init(set set: Set<AnyHashable>, copyItems flag: Bool)
convenience init(array array: [Any])
}
extension NSSet {
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
}
extension NSSet : Sequence {
func makeIterator() -> NSFastEnumerationIterator
}
extension NSSet {
}
extension NSSet {
convenience init(objects elements: Any...)
}
extension NSSet : ExpressibleByArrayLiteral {
required convenience init(arrayLiteral elements: Any...)
}
extension NSSet {
@nonobjc convenience init(set anSet: NSSet)
}
extension NSSet : CustomReflectable {
var customMirror: Mirror { get }
} |
Modified NSSortDescriptor
| Declaration | |
|---|---|
| From | class NSSortDescriptor : NSObject, NSSecureCoding, NSCopying {
convenience init(key key: String?, ascending ascending: Bool)
class func withKey(_ key: String?, ascending ascending: Bool) -> Self
convenience init(key key: String?, ascending ascending: Bool, selector selector: Selector?)
class func withKey(_ key: String?, ascending ascending: Bool, selector selector: Selector?) -> Self
init(key key: String?, ascending ascending: Bool)
init(key key: String?, ascending ascending: Bool, selector selector: Selector?)
init?(coder coder: NSCoder)
var key: String? { get }
var ascending: Bool { get }
var selector: Selector? { get }
func allowEvaluation()
convenience init(key key: String?, ascending ascending: Bool, comparator cmptr: Foundation.Comparator)
class func withKey(_ key: String?, ascending ascending: Bool, comparator cmptr: Foundation.Comparator) -> Self
init(key key: String?, ascending ascending: Bool, comparator cmptr: Foundation.Comparator)
var comparator: Foundation.Comparator { get }
func compare(_ object1: Any, to object2: Any) -> ComparisonResult
var reversedSortDescriptor: Any { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSSortDescriptor : CVarArg {
}
extension NSSortDescriptor : Equatable, Hashable {
var hashValue: Int { get }
} |
| To | class NSSortDescriptor : NSObject, NSSecureCoding, NSCopying {
convenience init(key key: String?, ascending ascending: Bool)
class func withKey(_ key: String?, ascending ascending: Bool) -> Self
convenience init(key key: String?, ascending ascending: Bool, selector selector: Selector?)
class func withKey(_ key: String?, ascending ascending: Bool, selector selector: Selector?) -> Self
init(key key: String?, ascending ascending: Bool)
init(key key: String?, ascending ascending: Bool, selector selector: Selector?)
init?(coder coder: NSCoder)
var key: String? { get }
var ascending: Bool { get }
var selector: Selector? { get }
func allowEvaluation()
convenience init(key key: String?, ascending ascending: Bool, comparator cmptr: @escaping Foundation.Comparator)
class func withKey(_ key: String?, ascending ascending: Bool, comparator cmptr: @escaping Foundation.Comparator) -> Self
init(key key: String?, ascending ascending: Bool, comparator cmptr: @escaping Foundation.Comparator)
var comparator: Foundation.Comparator { get }
func compare(_ object1: Any, to object2: Any) -> ComparisonResult
var reversedSortDescriptor: Any { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSSortDescriptor : CVarArg {
}
extension NSSortDescriptor : Equatable, Hashable {
var hashValue: Int { get }
} |
| Declaration | |
|---|---|
| From | init(key key: String?, ascending ascending: Bool, comparator cmptr: Foundation.Comparator) |
| To | init(key key: String?, ascending ascending: Bool, comparator cmptr: @escaping Foundation.Comparator) |
Modified Progress
| Declaration | |
|---|---|
| From | class Progress : NSObject {
class func current() -> Progress?
init(totalUnitCount unitCount: Int64)
class func withTotalUnitCount(_ unitCount: Int64) -> Progress
class func discreteProgress(totalUnitCount unitCount: Int64) -> Progress
init(totalUnitCount unitCount: Int64, parent parent: Progress, pendingUnitCount portionOfParentTotalUnitCount: Int64)
class func withTotalUnitCount(_ unitCount: Int64, parent parent: Progress, pendingUnitCount portionOfParentTotalUnitCount: Int64) -> Progress
init(parent parentProgressOrNil: Progress?, userInfo userInfoOrNil: [AnyHashable : Any]? = nil)
func becomeCurrent(withPendingUnitCount unitCount: Int64)
func resignCurrent()
func addChild(_ child: Progress, withPendingUnitCount inUnitCount: Int64)
var totalUnitCount: Int64
var completedUnitCount: Int64
var localizedDescription: String!
var localizedAdditionalDescription: String!
var isCancellable: Bool
var isPausable: Bool
var isCancelled: Bool { get }
var isPaused: Bool { get }
var cancellationHandler: (() -> Swift.Void)?
var pausingHandler: (() -> Swift.Void)?
var resumingHandler: (() -> Swift.Void)?
func setUserInfoObject(_ objectOrNil: Any?, forKey key: ProgressUserInfoKey)
var isIndeterminate: Bool { get }
var fractionCompleted: Double { get }
func cancel()
func pause()
func resume()
var userInfo: [ProgressUserInfoKey : Any] { get }
var kind: ProgressKind?
func publish()
func unpublish()
class func addSubscriber(forFileURL url: URL, withPublishingHandler publishingHandler: Progress.PublishingHandler) -> Any
class func removeSubscriber(_ subscriber: Any)
var isOld: Bool { get }
typealias UnpublishingHandler = () -> Swift.Void
typealias PublishingHandler = (Progress) -> Progress.UnpublishingHandler?
struct FileOperationKind : RawRepresentable, Equatable, Hashable, Comparable {
init(_ rawValue: String)
init(rawValue rawValue: String)
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension Progress : CVarArg {
}
extension Progress : Equatable, Hashable {
var hashValue: Int { get }
}
extension Progress {
typealias UnpublishingHandler = () -> Swift.Void
typealias PublishingHandler = (Progress) -> Progress.UnpublishingHandler?
struct FileOperationKind : RawRepresentable, Equatable, Hashable, Comparable {
init(_ rawValue: String)
init(rawValue rawValue: String)
}
} |
| To | class Progress : NSObject {
class func current() -> Progress?
init(totalUnitCount unitCount: Int64)
class func withTotalUnitCount(_ unitCount: Int64) -> Progress
class func discreteProgress(totalUnitCount unitCount: Int64) -> Progress
init(totalUnitCount unitCount: Int64, parent parent: Progress, pendingUnitCount portionOfParentTotalUnitCount: Int64)
class func withTotalUnitCount(_ unitCount: Int64, parent parent: Progress, pendingUnitCount portionOfParentTotalUnitCount: Int64) -> Progress
init(parent parentProgressOrNil: Progress?, userInfo userInfoOrNil: [AnyHashable : Any]? = nil)
func becomeCurrent(withPendingUnitCount unitCount: Int64)
func resignCurrent()
func addChild(_ child: Progress, withPendingUnitCount inUnitCount: Int64)
var totalUnitCount: Int64
var completedUnitCount: Int64
var localizedDescription: String!
var localizedAdditionalDescription: String!
var isCancellable: Bool
var isPausable: Bool
var isCancelled: Bool { get }
var isPaused: Bool { get }
var cancellationHandler: (() -> Swift.Void)?
var pausingHandler: (() -> Swift.Void)?
var resumingHandler: (() -> Swift.Void)?
func setUserInfoObject(_ objectOrNil: Any?, forKey key: ProgressUserInfoKey)
var isIndeterminate: Bool { get }
var fractionCompleted: Double { get }
func cancel()
func pause()
func resume()
var userInfo: [ProgressUserInfoKey : Any] { get }
var kind: ProgressKind?
func publish()
func unpublish()
class func addSubscriber(forFileURL url: URL, withPublishingHandler publishingHandler: @escaping Progress.PublishingHandler) -> Any
class func removeSubscriber(_ subscriber: Any)
var isOld: Bool { get }
typealias UnpublishingHandler = () -> Swift.Void
typealias PublishingHandler = (Progress) -> Progress.UnpublishingHandler?
struct FileOperationKind : RawRepresentable, Equatable, Hashable, Comparable {
init(_ rawValue: String)
init(rawValue rawValue: String)
}
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension Progress : CVarArg {
}
extension Progress : Equatable, Hashable {
var hashValue: Int { get }
}
extension Progress {
typealias UnpublishingHandler = () -> Swift.Void
typealias PublishingHandler = (Progress) -> Progress.UnpublishingHandler?
struct FileOperationKind : RawRepresentable, Equatable, Hashable, Comparable {
init(_ rawValue: String)
init(rawValue rawValue: String)
}
} |
| Declaration | |
|---|---|
| From | func NSSetUncaughtExceptionHandler(_ _: (@escaping (NSException) -> Swift.Void)?) |
| To | func NSSetUncaughtExceptionHandler(_ _: ((NSException) -> Swift.Void)?) |