Foundation Changes for Swift
Foundation
Removed NSUndoManager.registerUndoWithTarget<TargetType : AnyObject>(_: TargetType, handler: TargetType -> ())
Removed ==(_: T, _: T) -> Bool
Removed ==(_: T, _: T) -> Bool
Added NSUndoManager.registerUndoWithTarget<TargetType : AnyObject>(_: TargetType, handler: (TargetType) -> Void)
Added ==(_: T, _: T) -> Bool
Added ==(_: T, _: T) -> Bool
Added ErrorPointer
Modified NSOrthography
Declaration | Protocols | |
---|---|---|
From | class NSOrthography : NSObject, NSCopying, NSCoding { var dominantScript: String { get } var languageMap: [String : [String]] { get } init(dominantScript script: String, languageMap map: [String : [String]]) init?(coder aDecoder: NSCoder) } extension NSOrthography { func languagesForScript(_ script: String) -> [String]? func dominantLanguageForScript(_ script: String) -> String? var dominantLanguage: String { get } var allScripts: [String] { get } var allLanguages: [String] { get } } extension NSOrthography { convenience init(dominantScript script: String, languageMap map: [String : [String]]) class func orthographyWithDominantScript(_ script: String, languageMap map: [String : [String]]) -> Self } | NSCoding, NSCopying |
To | class NSOrthography : NSObject, NSCopying, NSSecureCoding { var dominantScript: String { get } var languageMap: [String : [String]] { get } init(dominantScript script: String, languageMap map: [String : [String]]) init?(coder aDecoder: NSCoder) } extension NSOrthography { func languagesForScript(_ script: String) -> [String]? func dominantLanguageForScript(_ script: String) -> String? var dominantLanguage: String { get } var allScripts: [String] { get } var allLanguages: [String] { get } } extension NSOrthography { convenience init(dominantScript script: String, languageMap map: [String : [String]]) class func orthographyWithDominantScript(_ script: String, languageMap map: [String : [String]]) -> Self } | NSCopying, NSSecureCoding |
Modified NSRegularExpression
Declaration | Protocols | |
---|---|---|
From | class NSRegularExpression : NSObject, NSCopying, NSCoding { init(pattern pattern: String, options options: NSRegularExpressionOptions) throws class func regularExpressionWithPattern(_ pattern: String, options options: NSRegularExpressionOptions) throws -> NSRegularExpression init(pattern pattern: String, options options: NSRegularExpressionOptions) throws var pattern: String { get } var options: NSRegularExpressionOptions { get } var numberOfCaptureGroups: Int { get } class func escapedPatternForString(_ string: String) -> String } extension NSRegularExpression { func enumerateMatchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange, usingBlock block: (NSTextCheckingResult?, NSMatchingFlags, UnsafeMutablePointer<ObjCBool>) -> Void) func matchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> [NSTextCheckingResult] func numberOfMatchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> Int func firstMatchInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> NSTextCheckingResult? func rangeOfFirstMatchInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> NSRange } extension NSRegularExpression { func stringByReplacingMatchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange, withTemplate templ: String) -> String func replaceMatchesInString(_ string: NSMutableString, options options: NSMatchingOptions, range range: NSRange, withTemplate templ: String) -> Int func replacementStringForResult(_ result: NSTextCheckingResult, inString string: String, offset offset: Int, template templ: String) -> String class func escapedTemplateForString(_ string: String) -> String } | NSCoding, NSCopying |
To | class NSRegularExpression : NSObject, NSCopying, NSSecureCoding { init(pattern pattern: String, options options: NSRegularExpressionOptions) throws class func regularExpressionWithPattern(_ pattern: String, options options: NSRegularExpressionOptions) throws -> NSRegularExpression init(pattern pattern: String, options options: NSRegularExpressionOptions) throws var pattern: String { get } var options: NSRegularExpressionOptions { get } var numberOfCaptureGroups: Int { get } class func escapedPatternForString(_ string: String) -> String } extension NSRegularExpression { func enumerateMatchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange, usingBlock block: (NSTextCheckingResult?, NSMatchingFlags, UnsafeMutablePointer<ObjCBool>) -> Void) func matchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> [NSTextCheckingResult] func numberOfMatchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> Int func firstMatchInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> NSTextCheckingResult? func rangeOfFirstMatchInString(_ string: String, options options: NSMatchingOptions, range range: NSRange) -> NSRange } extension NSRegularExpression { func stringByReplacingMatchesInString(_ string: String, options options: NSMatchingOptions, range range: NSRange, withTemplate templ: String) -> String func replaceMatchesInString(_ string: NSMutableString, options options: NSMatchingOptions, range range: NSRange, withTemplate templ: String) -> Int func replacementStringForResult(_ result: NSTextCheckingResult, inString string: String, offset offset: Int, template templ: String) -> String class func escapedTemplateForString(_ string: String) -> String } | NSCopying, NSSecureCoding |
Modified NSString
Declaration | |
---|---|
From | class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding { var length: Int { get } func characterAtIndex(_ index: Int) -> unichar init() init?(coder aDecoder: NSCoder) } extension NSString : CNKeyDescriptor { } extension NSString { func variantFittingPresentationWidth(_ width: Int) -> String } extension NSString { func linguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, tokenRanges tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>) -> [String] func enumerateLinguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, usingBlock block: (String, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void) } extension NSString { class func pathWithComponents(_ components: [String]) -> String var pathComponents: [String] { get } var absolutePath: Bool { get } var lastPathComponent: String { get } var stringByDeletingLastPathComponent: String { get } func stringByAppendingPathComponent(_ str: String) -> String var pathExtension: String { get } var stringByDeletingPathExtension: String { get } func stringByAppendingPathExtension(_ str: String) -> String? var stringByAbbreviatingWithTildeInPath: String { get } var stringByExpandingTildeInPath: String { get } var stringByStandardizingPath: String { get } var stringByResolvingSymlinksInPath: String { get } func stringsByAppendingPaths(_ paths: [String]) -> [String] func completePathIntoString(_ outputName: AutoreleasingUnsafeMutablePointer<NSString?>, caseSensitive flag: Bool, matchesIntoArray outputArray: AutoreleasingUnsafeMutablePointer<NSArray?>, filterTypes filterTypes: [String]?) -> Int var fileSystemRepresentation: UnsafePointer<Int8> { get } func getFileSystemRepresentation(_ cname: UnsafeMutablePointer<Int8>, maxLength max: Int) -> Bool } extension NSString : StringLiteralConvertible { required convenience init(unicodeScalarLiteral value: StaticString) required convenience init(extendedGraphemeClusterLiteral value: StaticString) required convenience init(stringLiteral value: StaticString) } extension NSString : _CocoaStringType { } extension NSString { convenience init(format format: NSString, _ args: CVarArgType...) convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...) @warn_unused_result class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self @warn_unused_result func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString } extension NSString { @objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString) } extension NSString : _Reflectable { } extension NSString { func substringFromIndex(_ from: Int) -> String func substringToIndex(_ to: Int) -> String func substringWithRange(_ range: NSRange) -> String func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range range: NSRange) func compare(_ string: String) -> NSComparisonResult func compare(_ string: String, options mask: NSStringCompareOptions) -> NSComparisonResult func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange) -> NSComparisonResult func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange, locale locale: AnyObject?) -> NSComparisonResult func caseInsensitiveCompare(_ string: String) -> NSComparisonResult func localizedCompare(_ string: String) -> NSComparisonResult func localizedCaseInsensitiveCompare(_ string: String) -> NSComparisonResult func localizedStandardCompare(_ string: String) -> NSComparisonResult func isEqualToString(_ aString: String) -> Bool func hasPrefix(_ str: String) -> Bool func hasSuffix(_ str: String) -> Bool func commonPrefixWithString(_ str: String, options mask: NSStringCompareOptions) -> String func containsString(_ str: String) -> Bool func localizedCaseInsensitiveContainsString(_ str: String) -> Bool func localizedStandardContainsString(_ str: String) -> Bool func localizedStandardRangeOfString(_ str: String) -> NSRange func rangeOfString(_ searchString: String) -> NSRange func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions) -> NSRange func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange, locale locale: NSLocale?) -> NSRange func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet) -> NSRange func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions) -> NSRange func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange func rangeOfComposedCharacterSequenceAtIndex(_ index: Int) -> NSRange func rangeOfComposedCharacterSequencesForRange(_ range: NSRange) -> NSRange func stringByAppendingString(_ aString: String) -> String var doubleValue: Double { get } var floatValue: Float { get } var intValue: Int32 { get } var integerValue: Int { get } var longLongValue: Int64 { get } var boolValue: Bool { get } var uppercaseString: String { get } var lowercaseString: String { get } var capitalizedString: String { get } var localizedUppercaseString: String { get } var localizedLowercaseString: String { get } var localizedCapitalizedString: String { get } func uppercaseStringWithLocale(_ locale: NSLocale?) -> String func lowercaseStringWithLocale(_ locale: NSLocale?) -> String func capitalizedStringWithLocale(_ locale: NSLocale?) -> String func getLineStart(_ startPtr: UnsafeMutablePointer<Int>, end lineEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange) func lineRangeForRange(_ range: NSRange) -> NSRange func getParagraphStart(_ startPtr: UnsafeMutablePointer<Int>, end parEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange) func paragraphRangeForRange(_ range: NSRange) -> NSRange func enumerateSubstringsInRange(_ range: NSRange, options opts: NSStringEnumerationOptions, usingBlock block: (String?, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void) func enumerateLinesUsingBlock(_ block: (String, UnsafeMutablePointer<ObjCBool>) -> Void) var UTF8String: UnsafePointer<Int8> { get } var fastestEncoding: UInt { get } var smallestEncoding: UInt { get } func dataUsingEncoding(_ encoding: UInt, allowLossyConversion lossy: Bool) -> NSData? func dataUsingEncoding(_ encoding: UInt) -> NSData? func canBeConvertedToEncoding(_ encoding: UInt) -> Bool func cStringUsingEncoding(_ encoding: UInt) -> UnsafePointer<Int8> func getCString(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferCount: Int, encoding encoding: UInt) -> Bool func getBytes(_ buffer: UnsafeMutablePointer<Void>, maxLength maxBufferCount: Int, usedLength usedBufferCount: UnsafeMutablePointer<Int>, encoding encoding: UInt, options options: NSStringEncodingConversionOptions, range range: NSRange, remainingRange leftover: NSRangePointer) -> Bool func maximumLengthOfBytesUsingEncoding(_ enc: UInt) -> Int func lengthOfBytesUsingEncoding(_ enc: UInt) -> Int class func availableStringEncodings() -> UnsafePointer<UInt> class func localizedNameOfStringEncoding(_ encoding: UInt) -> String class func defaultCStringEncoding() -> UInt var decomposedStringWithCanonicalMapping: String { get } var precomposedStringWithCanonicalMapping: String { get } var decomposedStringWithCompatibilityMapping: String { get } var precomposedStringWithCompatibilityMapping: String { get } func componentsSeparatedByString(_ separator: String) -> [String] func componentsSeparatedByCharactersInSet(_ separator: NSCharacterSet) -> [String] func stringByTrimmingCharactersInSet(_ set: NSCharacterSet) -> String func stringByPaddingToLength(_ newLength: Int, withString padString: String, startingAtIndex padIndex: Int) -> String func stringByFoldingWithOptions(_ options: NSStringCompareOptions, locale locale: NSLocale?) -> String func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String, options options: NSStringCompareOptions, range searchRange: NSRange) -> String func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String) -> String func stringByReplacingCharactersInRange(_ range: NSRange, withString replacement: String) -> String func stringByApplyingTransform(_ transform: String, reverse reverse: Bool) -> String? func writeToURL(_ url: NSURL, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws var description: String { get } var hash: Int { get } convenience init(charactersNoCopy characters: UnsafeMutablePointer<unichar>, length length: Int, freeWhenDone freeBuffer: Bool) convenience init(characters characters: UnsafePointer<unichar>, length length: Int) convenience init?(UTF8String nullTerminatedCString: UnsafePointer<Int8>) convenience init(string aString: String) convenience init(format format: String, arguments argList: CVaListPointer) convenience init(format format: String, locale locale: AnyObject?, arguments argList: CVaListPointer) convenience init?(data data: NSData, encoding encoding: UInt) convenience init?(bytes bytes: UnsafePointer<Void>, length len: Int, encoding encoding: UInt) convenience init?(bytesNoCopy bytes: UnsafeMutablePointer<Void>, length len: Int, encoding encoding: UInt, freeWhenDone freeBuffer: Bool) class func string() -> Self class func stringWithString(_ string: String) -> Self class func stringWithCharacters(_ characters: UnsafePointer<unichar>, length length: Int) -> Self class func stringWithUTF8String(_ nullTerminatedCString: UnsafePointer<Int8>) -> Self? convenience init?(CString nullTerminatedCString: UnsafePointer<Int8>, encoding encoding: UInt) class func stringWithCString(_ cString: UnsafePointer<Int8>, encoding enc: UInt) -> Self? convenience init(contentsOfURL url: NSURL, encoding enc: UInt) throws convenience init(contentsOfFile path: String, encoding enc: UInt) throws class func stringWithContentsOfURL(_ url: NSURL, encoding enc: UInt) throws -> Self class func stringWithContentsOfFile(_ path: String, encoding enc: UInt) throws -> Self convenience init(contentsOfURL url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws convenience init(contentsOfFile path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws class func stringWithContentsOfURL(_ url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self class func stringWithContentsOfFile(_ path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self } extension NSString { class func stringEncodingForData(_ data: NSData, encodingOptions opts: [String : AnyObject]?, convertedString string: AutoreleasingUnsafeMutablePointer<NSString?>, usedLossyConversion usedLossyConversion: UnsafeMutablePointer<ObjCBool>) -> UInt } extension NSString { func propertyList() -> AnyObject func propertyListFromStringsFileFormat() -> [NSObject : AnyObject]? } extension NSString { func cString() -> UnsafePointer<Int8> func lossyCString() -> UnsafePointer<Int8> func cStringLength() -> Int func getCString(_ bytes: UnsafeMutablePointer<Int8>) func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int) func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int, range aRange: NSRange, remainingRange leftoverRange: NSRangePointer) func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool) -> Bool func writeToURL(_ url: NSURL, atomically atomically: Bool) -> Bool convenience init?(contentsOfFile path: String) convenience init?(contentsOfURL url: NSURL) class func stringWithContentsOfFile(_ path: String) -> AnyObject? class func stringWithContentsOfURL(_ url: NSURL) -> AnyObject? convenience init?(CStringNoCopy bytes: UnsafeMutablePointer<Int8>, length length: Int, freeWhenDone freeBuffer: Bool) convenience init?(CString bytes: UnsafePointer<Int8>, length length: Int) convenience init?(CString bytes: UnsafePointer<Int8>) class func stringWithCString(_ bytes: UnsafePointer<Int8>, length length: Int) -> AnyObject? class func stringWithCString(_ bytes: UnsafePointer<Int8>) -> AnyObject? func getCharacters(_ buffer: UnsafeMutablePointer<unichar>) } extension NSString { func stringByAddingPercentEncodingWithAllowedCharacters(_ allowedCharacters: NSCharacterSet) -> String? var stringByRemovingPercentEncoding: String? { get } func stringByAddingPercentEscapesUsingEncoding(_ enc: UInt) -> String? func stringByReplacingPercentEscapesUsingEncoding(_ enc: UInt) -> String? } extension NSString : _Reflectable { } extension NSString { @objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString) } extension NSString { convenience init(format format: NSString, _ args: CVarArgType...) convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...) @warn_unused_result class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self @warn_unused_result func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString } extension NSString : _CocoaStringType { } extension NSString : StringLiteralConvertible { required convenience init(unicodeScalarLiteral value: StaticString) required convenience init(extendedGraphemeClusterLiteral value: StaticString) required convenience init(stringLiteral value: StaticString) } extension NSString { func sizeWithAttributes(_ attrs: [String : AnyObject]?) -> CGSize func drawAtPoint(_ point: CGPoint, withAttributes attrs: [String : AnyObject]?) func drawInRect(_ rect: CGRect, withAttributes attrs: [String : AnyObject]?) } extension NSString { func drawWithRect(_ rect: CGRect, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?) func boundingRectWithSize(_ size: CGSize, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?) -> CGRect } |
To | class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding { var length: Int { get } func characterAtIndex(_ index: Int) -> unichar init() init?(coder aDecoder: NSCoder) } extension NSString : CNKeyDescriptor { } extension NSString { func variantFittingPresentationWidth(_ width: Int) -> String } extension NSString { func linguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, tokenRanges tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>) -> [String] func enumerateLinguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, usingBlock block: (String, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void) } extension NSString { class func pathWithComponents(_ components: [String]) -> String var pathComponents: [String] { get } var absolutePath: Bool { get } var lastPathComponent: String { get } var stringByDeletingLastPathComponent: String { get } func stringByAppendingPathComponent(_ str: String) -> String var pathExtension: String { get } var stringByDeletingPathExtension: String { get } func stringByAppendingPathExtension(_ str: String) -> String? var stringByAbbreviatingWithTildeInPath: String { get } var stringByExpandingTildeInPath: String { get } var stringByStandardizingPath: String { get } var stringByResolvingSymlinksInPath: String { get } func stringsByAppendingPaths(_ paths: [String]) -> [String] func completePathIntoString(_ outputName: AutoreleasingUnsafeMutablePointer<NSString?>, caseSensitive flag: Bool, matchesIntoArray outputArray: AutoreleasingUnsafeMutablePointer<NSArray?>, filterTypes filterTypes: [String]?) -> Int var fileSystemRepresentation: UnsafePointer<Int8> { get } func getFileSystemRepresentation(_ cname: UnsafeMutablePointer<Int8>, maxLength max: Int) -> Bool } extension NSString : StringLiteralConvertible { required convenience init(unicodeScalarLiteral value: StaticString) required convenience init(extendedGraphemeClusterLiteral value: StaticString) required convenience init(stringLiteral value: StaticString) } extension NSString { convenience init(format format: NSString, _ args: CVarArgType...) convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...) @warn_unused_result class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self @warn_unused_result func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString } extension NSString { @objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString) } extension NSString : _Reflectable { } extension NSString { func substringFromIndex(_ from: Int) -> String func substringToIndex(_ to: Int) -> String func substringWithRange(_ range: NSRange) -> String func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range range: NSRange) func compare(_ string: String) -> NSComparisonResult func compare(_ string: String, options mask: NSStringCompareOptions) -> NSComparisonResult func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange) -> NSComparisonResult func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange, locale locale: AnyObject?) -> NSComparisonResult func caseInsensitiveCompare(_ string: String) -> NSComparisonResult func localizedCompare(_ string: String) -> NSComparisonResult func localizedCaseInsensitiveCompare(_ string: String) -> NSComparisonResult func localizedStandardCompare(_ string: String) -> NSComparisonResult func isEqualToString(_ aString: String) -> Bool func hasPrefix(_ str: String) -> Bool func hasSuffix(_ str: String) -> Bool func commonPrefixWithString(_ str: String, options mask: NSStringCompareOptions) -> String func containsString(_ str: String) -> Bool func localizedCaseInsensitiveContainsString(_ str: String) -> Bool func localizedStandardContainsString(_ str: String) -> Bool func localizedStandardRangeOfString(_ str: String) -> NSRange func rangeOfString(_ searchString: String) -> NSRange func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions) -> NSRange func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange, locale locale: NSLocale?) -> NSRange func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet) -> NSRange func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions) -> NSRange func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange func rangeOfComposedCharacterSequenceAtIndex(_ index: Int) -> NSRange func rangeOfComposedCharacterSequencesForRange(_ range: NSRange) -> NSRange func stringByAppendingString(_ aString: String) -> String var doubleValue: Double { get } var floatValue: Float { get } var intValue: Int32 { get } var integerValue: Int { get } var longLongValue: Int64 { get } var boolValue: Bool { get } var uppercaseString: String { get } var lowercaseString: String { get } var capitalizedString: String { get } var localizedUppercaseString: String { get } var localizedLowercaseString: String { get } var localizedCapitalizedString: String { get } func uppercaseStringWithLocale(_ locale: NSLocale?) -> String func lowercaseStringWithLocale(_ locale: NSLocale?) -> String func capitalizedStringWithLocale(_ locale: NSLocale?) -> String func getLineStart(_ startPtr: UnsafeMutablePointer<Int>, end lineEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange) func lineRangeForRange(_ range: NSRange) -> NSRange func getParagraphStart(_ startPtr: UnsafeMutablePointer<Int>, end parEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange) func paragraphRangeForRange(_ range: NSRange) -> NSRange func enumerateSubstringsInRange(_ range: NSRange, options opts: NSStringEnumerationOptions, usingBlock block: (String?, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void) func enumerateLinesUsingBlock(_ block: (String, UnsafeMutablePointer<ObjCBool>) -> Void) var UTF8String: UnsafePointer<Int8> { get } var fastestEncoding: UInt { get } var smallestEncoding: UInt { get } func dataUsingEncoding(_ encoding: UInt, allowLossyConversion lossy: Bool) -> NSData? func dataUsingEncoding(_ encoding: UInt) -> NSData? func canBeConvertedToEncoding(_ encoding: UInt) -> Bool func cStringUsingEncoding(_ encoding: UInt) -> UnsafePointer<Int8> func getCString(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferCount: Int, encoding encoding: UInt) -> Bool func getBytes(_ buffer: UnsafeMutablePointer<Void>, maxLength maxBufferCount: Int, usedLength usedBufferCount: UnsafeMutablePointer<Int>, encoding encoding: UInt, options options: NSStringEncodingConversionOptions, range range: NSRange, remainingRange leftover: NSRangePointer) -> Bool func maximumLengthOfBytesUsingEncoding(_ enc: UInt) -> Int func lengthOfBytesUsingEncoding(_ enc: UInt) -> Int class func availableStringEncodings() -> UnsafePointer<UInt> class func localizedNameOfStringEncoding(_ encoding: UInt) -> String class func defaultCStringEncoding() -> UInt var decomposedStringWithCanonicalMapping: String { get } var precomposedStringWithCanonicalMapping: String { get } var decomposedStringWithCompatibilityMapping: String { get } var precomposedStringWithCompatibilityMapping: String { get } func componentsSeparatedByString(_ separator: String) -> [String] func componentsSeparatedByCharactersInSet(_ separator: NSCharacterSet) -> [String] func stringByTrimmingCharactersInSet(_ set: NSCharacterSet) -> String func stringByPaddingToLength(_ newLength: Int, withString padString: String, startingAtIndex padIndex: Int) -> String func stringByFoldingWithOptions(_ options: NSStringCompareOptions, locale locale: NSLocale?) -> String func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String, options options: NSStringCompareOptions, range searchRange: NSRange) -> String func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String) -> String func stringByReplacingCharactersInRange(_ range: NSRange, withString replacement: String) -> String func stringByApplyingTransform(_ transform: String, reverse reverse: Bool) -> String? func writeToURL(_ url: NSURL, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws var description: String { get } var hash: Int { get } convenience init(charactersNoCopy characters: UnsafeMutablePointer<unichar>, length length: Int, freeWhenDone freeBuffer: Bool) convenience init(characters characters: UnsafePointer<unichar>, length length: Int) convenience init?(UTF8String nullTerminatedCString: UnsafePointer<Int8>) convenience init(string aString: String) convenience init(format format: String, arguments argList: CVaListPointer) convenience init(format format: String, locale locale: AnyObject?, arguments argList: CVaListPointer) convenience init?(data data: NSData, encoding encoding: UInt) convenience init?(bytes bytes: UnsafePointer<Void>, length len: Int, encoding encoding: UInt) convenience init?(bytesNoCopy bytes: UnsafeMutablePointer<Void>, length len: Int, encoding encoding: UInt, freeWhenDone freeBuffer: Bool) class func string() -> Self class func stringWithString(_ string: String) -> Self class func stringWithCharacters(_ characters: UnsafePointer<unichar>, length length: Int) -> Self class func stringWithUTF8String(_ nullTerminatedCString: UnsafePointer<Int8>) -> Self? convenience init?(CString nullTerminatedCString: UnsafePointer<Int8>, encoding encoding: UInt) class func stringWithCString(_ cString: UnsafePointer<Int8>, encoding enc: UInt) -> Self? convenience init(contentsOfURL url: NSURL, encoding enc: UInt) throws convenience init(contentsOfFile path: String, encoding enc: UInt) throws class func stringWithContentsOfURL(_ url: NSURL, encoding enc: UInt) throws -> Self class func stringWithContentsOfFile(_ path: String, encoding enc: UInt) throws -> Self convenience init(contentsOfURL url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws convenience init(contentsOfFile path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws class func stringWithContentsOfURL(_ url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self class func stringWithContentsOfFile(_ path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self } extension NSString { class func stringEncodingForData(_ data: NSData, encodingOptions opts: [String : AnyObject]?, convertedString string: AutoreleasingUnsafeMutablePointer<NSString?>, usedLossyConversion usedLossyConversion: UnsafeMutablePointer<ObjCBool>) -> UInt } extension NSString { func propertyList() -> AnyObject func propertyListFromStringsFileFormat() -> [NSObject : AnyObject]? } extension NSString { func cString() -> UnsafePointer<Int8> func lossyCString() -> UnsafePointer<Int8> func cStringLength() -> Int func getCString(_ bytes: UnsafeMutablePointer<Int8>) func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int) func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int, range aRange: NSRange, remainingRange leftoverRange: NSRangePointer) func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool) -> Bool func writeToURL(_ url: NSURL, atomically atomically: Bool) -> Bool convenience init?(contentsOfFile path: String) convenience init?(contentsOfURL url: NSURL) class func stringWithContentsOfFile(_ path: String) -> AnyObject? class func stringWithContentsOfURL(_ url: NSURL) -> AnyObject? convenience init?(CStringNoCopy bytes: UnsafeMutablePointer<Int8>, length length: Int, freeWhenDone freeBuffer: Bool) convenience init?(CString bytes: UnsafePointer<Int8>, length length: Int) convenience init?(CString bytes: UnsafePointer<Int8>) class func stringWithCString(_ bytes: UnsafePointer<Int8>, length length: Int) -> AnyObject? class func stringWithCString(_ bytes: UnsafePointer<Int8>) -> AnyObject? func getCharacters(_ buffer: UnsafeMutablePointer<unichar>) } extension NSString { func stringByAddingPercentEncodingWithAllowedCharacters(_ allowedCharacters: NSCharacterSet) -> String? var stringByRemovingPercentEncoding: String? { get } func stringByAddingPercentEscapesUsingEncoding(_ enc: UInt) -> String? func stringByReplacingPercentEscapesUsingEncoding(_ enc: UInt) -> String? } extension NSString : _Reflectable { } extension NSString { @objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString) } extension NSString { convenience init(format format: NSString, _ args: CVarArgType...) convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...) @warn_unused_result class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self @warn_unused_result func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString } extension NSString : StringLiteralConvertible { required convenience init(unicodeScalarLiteral value: StaticString) required convenience init(extendedGraphemeClusterLiteral value: StaticString) required convenience init(stringLiteral value: StaticString) } extension NSString { func sizeWithAttributes(_ attrs: [String : AnyObject]?) -> CGSize func drawAtPoint(_ point: CGPoint, withAttributes attrs: [String : AnyObject]?) func drawInRect(_ rect: CGRect, withAttributes attrs: [String : AnyObject]?) } extension NSString { func drawWithRect(_ rect: CGRect, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?) func boundingRectWithSize(_ size: CGSize, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?) -> CGRect } |
Modified NSTextCheckingResult
Declaration | Protocols | |
---|---|---|
From | class NSTextCheckingResult : NSObject, NSCopying, NSCoding { var resultType: NSTextCheckingType { get } var range: NSRange { get } } extension NSTextCheckingResult { @NSCopying var orthography: NSOrthography? { get } var grammarDetails: [String]? { get } @NSCopying var date: NSDate? { get } @NSCopying var timeZone: NSTimeZone? { get } var duration: NSTimeInterval { get } var components: [String : String]? { get } @NSCopying var URL: NSURL? { get } var replacementString: String? { get } var alternativeStrings: [String]? { get } @NSCopying var regularExpression: NSRegularExpression? { get } var phoneNumber: String? { get } var addressComponents: [String : String]? { get } var numberOfRanges: Int { get } func rangeAtIndex(_ idx: Int) -> NSRange func resultByAdjustingRangesWithOffset(_ offset: Int) -> NSTextCheckingResult } extension NSTextCheckingResult { class func orthographyCheckingResultWithRange(_ range: NSRange, orthography orthography: NSOrthography) -> NSTextCheckingResult class func spellCheckingResultWithRange(_ range: NSRange) -> NSTextCheckingResult class func grammarCheckingResultWithRange(_ range: NSRange, details details: [String]) -> NSTextCheckingResult class func dateCheckingResultWithRange(_ range: NSRange, date date: NSDate) -> NSTextCheckingResult class func dateCheckingResultWithRange(_ range: NSRange, date date: NSDate, timeZone timeZone: NSTimeZone, duration duration: NSTimeInterval) -> NSTextCheckingResult class func addressCheckingResultWithRange(_ range: NSRange, components components: [String : String]) -> NSTextCheckingResult class func linkCheckingResultWithRange(_ range: NSRange, URL url: NSURL) -> NSTextCheckingResult class func quoteCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func dashCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func replacementCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func correctionCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func correctionCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String, alternativeStrings alternativeStrings: [String]) -> NSTextCheckingResult class func regularExpressionCheckingResultWithRanges(_ ranges: NSRangePointer, count count: Int, regularExpression regularExpression: NSRegularExpression) -> NSTextCheckingResult class func phoneNumberCheckingResultWithRange(_ range: NSRange, phoneNumber phoneNumber: String) -> NSTextCheckingResult class func transitInformationCheckingResultWithRange(_ range: NSRange, components components: [String : String]) -> NSTextCheckingResult } | NSCoding, NSCopying |
To | class NSTextCheckingResult : NSObject, NSCopying, NSSecureCoding { var resultType: NSTextCheckingType { get } var range: NSRange { get } } extension NSTextCheckingResult { @NSCopying var orthography: NSOrthography? { get } var grammarDetails: [String]? { get } @NSCopying var date: NSDate? { get } @NSCopying var timeZone: NSTimeZone? { get } var duration: NSTimeInterval { get } var components: [String : String]? { get } @NSCopying var URL: NSURL? { get } var replacementString: String? { get } var alternativeStrings: [String]? { get } @NSCopying var regularExpression: NSRegularExpression? { get } var phoneNumber: String? { get } var addressComponents: [String : String]? { get } var numberOfRanges: Int { get } func rangeAtIndex(_ idx: Int) -> NSRange func resultByAdjustingRangesWithOffset(_ offset: Int) -> NSTextCheckingResult } extension NSTextCheckingResult { class func orthographyCheckingResultWithRange(_ range: NSRange, orthography orthography: NSOrthography) -> NSTextCheckingResult class func spellCheckingResultWithRange(_ range: NSRange) -> NSTextCheckingResult class func grammarCheckingResultWithRange(_ range: NSRange, details details: [String]) -> NSTextCheckingResult class func dateCheckingResultWithRange(_ range: NSRange, date date: NSDate) -> NSTextCheckingResult class func dateCheckingResultWithRange(_ range: NSRange, date date: NSDate, timeZone timeZone: NSTimeZone, duration duration: NSTimeInterval) -> NSTextCheckingResult class func addressCheckingResultWithRange(_ range: NSRange, components components: [String : String]) -> NSTextCheckingResult class func linkCheckingResultWithRange(_ range: NSRange, URL url: NSURL) -> NSTextCheckingResult class func quoteCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func dashCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func replacementCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func correctionCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String) -> NSTextCheckingResult class func correctionCheckingResultWithRange(_ range: NSRange, replacementString replacementString: String, alternativeStrings alternativeStrings: [String]) -> NSTextCheckingResult class func regularExpressionCheckingResultWithRanges(_ ranges: NSRangePointer, count count: Int, regularExpression regularExpression: NSRegularExpression) -> NSTextCheckingResult class func phoneNumberCheckingResultWithRange(_ range: NSRange, phoneNumber phoneNumber: String) -> NSTextCheckingResult class func transitInformationCheckingResultWithRange(_ range: NSRange, components components: [String : String]) -> NSTextCheckingResult } | NSCopying, NSSecureCoding |
Modified NSUndoManager
Declaration | |
---|---|
From | class NSUndoManager : NSObject { func beginUndoGrouping() func endUndoGrouping() var groupingLevel: Int { get } func disableUndoRegistration() func enableUndoRegistration() var undoRegistrationEnabled: Bool { get } var groupsByEvent: Bool var levelsOfUndo: Int var runLoopModes: [String] func undo() func redo() func undoNestedGroup() var canUndo: Bool { get } var canRedo: Bool { get } var undoing: Bool { get } var redoing: Bool { get } func removeAllActions() func removeAllActionsWithTarget(_ target: AnyObject) func registerUndoWithTarget(_ target: AnyObject, selector selector: Selector, object anObject: AnyObject?) func prepareWithInvocationTarget(_ target: AnyObject) -> AnyObject func __registerUndoWithTarget(_ target: AnyObject, handler undoHandler: (AnyObject) -> Void) func setActionIsDiscardable(_ discardable: Bool) var undoActionIsDiscardable: Bool { get } var redoActionIsDiscardable: Bool { get } var undoActionName: String { get } var redoActionName: String { get } func setActionName(_ actionName: String) var undoMenuItemTitle: String { get } var redoMenuItemTitle: String { get } func undoMenuTitleForUndoActionName(_ actionName: String) -> String func redoMenuTitleForUndoActionName(_ actionName: String) -> String } extension NSUndoManager { func registerUndoWithTarget<TargetType : AnyObject>(_ target: TargetType, handler handler: TargetType -> ()) } extension NSUndoManager { func registerUndoWithTarget<TargetType : AnyObject>(_ target: TargetType, handler handler: TargetType -> ()) } |
To | class NSUndoManager : NSObject { func beginUndoGrouping() func endUndoGrouping() var groupingLevel: Int { get } func disableUndoRegistration() func enableUndoRegistration() var undoRegistrationEnabled: Bool { get } var groupsByEvent: Bool var levelsOfUndo: Int var runLoopModes: [String] func undo() func redo() func undoNestedGroup() var canUndo: Bool { get } var canRedo: Bool { get } var undoing: Bool { get } var redoing: Bool { get } func removeAllActions() func removeAllActionsWithTarget(_ target: AnyObject) func registerUndoWithTarget(_ target: AnyObject, selector selector: Selector, object anObject: AnyObject?) func prepareWithInvocationTarget(_ target: AnyObject) -> AnyObject func __registerUndoWithTarget(_ target: AnyObject, handler undoHandler: (AnyObject) -> Void) func setActionIsDiscardable(_ discardable: Bool) var undoActionIsDiscardable: Bool { get } var redoActionIsDiscardable: Bool { get } var undoActionName: String { get } var redoActionName: String { get } func setActionName(_ actionName: String) var undoMenuItemTitle: String { get } var redoMenuItemTitle: String { get } func undoMenuTitleForUndoActionName(_ actionName: String) -> String func redoMenuTitleForUndoActionName(_ actionName: String) -> String } extension NSUndoManager { func registerUndoWithTarget<TargetType : AnyObject>(_ target: TargetType, handler handler: (TargetType) -> Void) } extension NSUndoManager { func registerUndoWithTarget<TargetType : AnyObject>(_ target: TargetType, handler handler: (TargetType) -> Void) } |
Modified NSURL
Declaration | |
---|---|
From | class NSURL : NSObject, NSSecureCoding, NSCopying { convenience init?(scheme scheme: String, host host: String?, path path: String) init(fileURLWithPath path: String, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) init(fileURLWithPath path: String, relativeToURL baseURL: NSURL?) init(fileURLWithPath path: String, isDirectory isDir: Bool) init(fileURLWithPath path: String) class func fileURLWithPath(_ path: String, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) -> NSURL class func fileURLWithPath(_ path: String, relativeToURL baseURL: NSURL?) -> NSURL class func fileURLWithPath(_ path: String, isDirectory isDir: Bool) -> NSURL class func fileURLWithPath(_ path: String) -> NSURL init(fileURLWithFileSystemRepresentation path: UnsafePointer<Int8>, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) class func fileURLWithFileSystemRepresentation(_ path: UnsafePointer<Int8>, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) -> NSURL convenience init?(string URLString: String) init?(string URLString: String, relativeToURL baseURL: NSURL?) class func URLWithString(_ URLString: String) -> Self? class func URLWithString(_ URLString: String, relativeToURL baseURL: NSURL?) -> Self? init(dataRepresentation data: NSData, relativeToURL baseURL: NSURL?) class func URLWithDataRepresentation(_ data: NSData, relativeToURL baseURL: NSURL?) -> NSURL init(absoluteURLWithDataRepresentation data: NSData, relativeToURL baseURL: NSURL?) class func absoluteURLWithDataRepresentation(_ data: NSData, relativeToURL baseURL: NSURL?) -> NSURL @NSCopying var dataRepresentation: NSData { get } var absoluteString: String { get } var relativeString: String? { get } @NSCopying var baseURL: NSURL? { get } @NSCopying var absoluteURL: NSURL { get } var scheme: String { get } var resourceSpecifier: String { get } var host: String? { get } @NSCopying var port: NSNumber? { get } var user: String? { get } var password: String? { get } var path: String? { get } var fragment: String? { get } var parameterString: String? { get } var query: String? { get } var relativePath: String? { get } var hasDirectoryPath: Bool { get } func getFileSystemRepresentation(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferLength: Int) -> Bool var fileSystemRepresentation: UnsafePointer<Int8> { get } var fileURL: Bool { get } @NSCopying var standardizedURL: NSURL? { get } func checkResourceIsReachableAndReturnError(_ error: NSErrorPointer) -> Bool func isFileReferenceURL() -> Bool func fileReferenceURL() -> NSURL? @NSCopying var filePathURL: NSURL? { get } func getResourceValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws func resourceValuesForKeys(_ keys: [String]) throws -> [String : AnyObject] func setResourceValue(_ value: AnyObject?, forKey key: String) throws func setResourceValues(_ keyedValues: [String : AnyObject]) throws func removeCachedResourceValueForKey(_ key: String) func removeAllCachedResourceValues() func setTemporaryResourceValue(_ value: AnyObject?, forKey key: String) func bookmarkDataWithOptions(_ options: NSURLBookmarkCreationOptions, includingResourceValuesForKeys keys: [String]?, relativeToURL relativeURL: NSURL?) throws -> NSData convenience init(byResolvingBookmarkData bookmarkData: NSData, options options: NSURLBookmarkResolutionOptions, relativeToURL relativeURL: NSURL?, bookmarkDataIsStale isStale: UnsafeMutablePointer<ObjCBool>) throws class func URLByResolvingBookmarkData(_ bookmarkData: NSData, options options: NSURLBookmarkResolutionOptions, relativeToURL relativeURL: NSURL?, bookmarkDataIsStale isStale: UnsafeMutablePointer<ObjCBool>) throws -> Self class func resourceValuesForKeys(_ keys: [String], fromBookmarkData bookmarkData: NSData) -> [String : AnyObject]? class func writeBookmarkData(_ bookmarkData: NSData, toURL bookmarkFileURL: NSURL, options options: NSURLBookmarkFileCreationOptions) throws class func bookmarkDataWithContentsOfURL(_ bookmarkFileURL: NSURL) throws -> NSData convenience init(byResolvingAliasFileAtURL url: NSURL, options options: NSURLBookmarkResolutionOptions) throws class func URLByResolvingAliasFileAtURL(_ url: NSURL, options options: NSURLBookmarkResolutionOptions) throws -> Self func startAccessingSecurityScopedResource() -> Bool func stopAccessingSecurityScopedResource() } extension NSURL : _FileReferenceLiteralConvertible { required convenience init(fileReferenceLiteral path: String) } extension NSURL : _Reflectable { } extension NSURL { func getPromisedItemResourceValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws func promisedItemResourceValuesForKeys(_ keys: [String]) throws -> [String : AnyObject] func checkPromisedItemIsReachableAndReturnError(_ error: NSErrorPointer) -> Bool } extension NSURL { class func fileURLWithPathComponents(_ components: [String]) -> NSURL? var pathComponents: [String]? { get } var lastPathComponent: String? { get } var pathExtension: String? { get } func URLByAppendingPathComponent(_ pathComponent: String) -> NSURL func URLByAppendingPathComponent(_ pathComponent: String, isDirectory isDirectory: Bool) -> NSURL @NSCopying var URLByDeletingLastPathComponent: NSURL? { get } func URLByAppendingPathExtension(_ pathExtension: String) -> NSURL @NSCopying var URLByDeletingPathExtension: NSURL? { get } @NSCopying var URLByStandardizingPath: NSURL? { get } @NSCopying var URLByResolvingSymlinksInPath: NSURL? { get } } extension NSURL : _Reflectable { } extension NSURL : _FileReferenceLiteralConvertible { required convenience init(fileReferenceLiteral path: String) } |
To | class NSURL : NSObject, NSSecureCoding, NSCopying { convenience init?(scheme scheme: String, host host: String?, path path: String) init(fileURLWithPath path: String, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) init(fileURLWithPath path: String, relativeToURL baseURL: NSURL?) init(fileURLWithPath path: String, isDirectory isDir: Bool) init(fileURLWithPath path: String) class func fileURLWithPath(_ path: String, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) -> NSURL class func fileURLWithPath(_ path: String, relativeToURL baseURL: NSURL?) -> NSURL class func fileURLWithPath(_ path: String, isDirectory isDir: Bool) -> NSURL class func fileURLWithPath(_ path: String) -> NSURL init(fileURLWithFileSystemRepresentation path: UnsafePointer<Int8>, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) class func fileURLWithFileSystemRepresentation(_ path: UnsafePointer<Int8>, isDirectory isDir: Bool, relativeToURL baseURL: NSURL?) -> NSURL convenience init?(string URLString: String) init?(string URLString: String, relativeToURL baseURL: NSURL?) class func URLWithString(_ URLString: String) -> Self? class func URLWithString(_ URLString: String, relativeToURL baseURL: NSURL?) -> Self? init(dataRepresentation data: NSData, relativeToURL baseURL: NSURL?) class func URLWithDataRepresentation(_ data: NSData, relativeToURL baseURL: NSURL?) -> NSURL init(absoluteURLWithDataRepresentation data: NSData, relativeToURL baseURL: NSURL?) class func absoluteURLWithDataRepresentation(_ data: NSData, relativeToURL baseURL: NSURL?) -> NSURL @NSCopying var dataRepresentation: NSData { get } var absoluteString: String { get } var relativeString: String? { get } @NSCopying var baseURL: NSURL? { get } @NSCopying var absoluteURL: NSURL { get } var scheme: String { get } var resourceSpecifier: String { get } var host: String? { get } @NSCopying var port: NSNumber? { get } var user: String? { get } var password: String? { get } var path: String? { get } var fragment: String? { get } var parameterString: String? { get } var query: String? { get } var relativePath: String? { get } var hasDirectoryPath: Bool { get } func getFileSystemRepresentation(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferLength: Int) -> Bool var fileSystemRepresentation: UnsafePointer<Int8> { get } var fileURL: Bool { get } @NSCopying var standardizedURL: NSURL? { get } func checkResourceIsReachableAndReturnError(_ error: NSErrorPointer) -> Bool func isFileReferenceURL() -> Bool func fileReferenceURL() -> NSURL? @NSCopying var filePathURL: NSURL? { get } func getResourceValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws func resourceValuesForKeys(_ keys: [String]) throws -> [String : AnyObject] func setResourceValue(_ value: AnyObject?, forKey key: String) throws func setResourceValues(_ keyedValues: [String : AnyObject]) throws func removeCachedResourceValueForKey(_ key: String) func removeAllCachedResourceValues() func setTemporaryResourceValue(_ value: AnyObject?, forKey key: String) func bookmarkDataWithOptions(_ options: NSURLBookmarkCreationOptions, includingResourceValuesForKeys keys: [String]?, relativeToURL relativeURL: NSURL?) throws -> NSData convenience init(byResolvingBookmarkData bookmarkData: NSData, options options: NSURLBookmarkResolutionOptions, relativeToURL relativeURL: NSURL?, bookmarkDataIsStale isStale: UnsafeMutablePointer<ObjCBool>) throws class func URLByResolvingBookmarkData(_ bookmarkData: NSData, options options: NSURLBookmarkResolutionOptions, relativeToURL relativeURL: NSURL?, bookmarkDataIsStale isStale: UnsafeMutablePointer<ObjCBool>) throws -> Self class func resourceValuesForKeys(_ keys: [String], fromBookmarkData bookmarkData: NSData) -> [String : AnyObject]? class func writeBookmarkData(_ bookmarkData: NSData, toURL bookmarkFileURL: NSURL, options options: NSURLBookmarkFileCreationOptions) throws class func bookmarkDataWithContentsOfURL(_ bookmarkFileURL: NSURL) throws -> NSData convenience init(byResolvingAliasFileAtURL url: NSURL, options options: NSURLBookmarkResolutionOptions) throws class func URLByResolvingAliasFileAtURL(_ url: NSURL, options options: NSURLBookmarkResolutionOptions) throws -> Self func startAccessingSecurityScopedResource() -> Bool func stopAccessingSecurityScopedResource() } extension NSURL { required convenience init(fileReferenceLiteral path: String) } extension NSURL : _Reflectable { } extension NSURL { func getPromisedItemResourceValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws func promisedItemResourceValuesForKeys(_ keys: [String]) throws -> [String : AnyObject] func checkPromisedItemIsReachableAndReturnError(_ error: NSErrorPointer) -> Bool } extension NSURL { class func fileURLWithPathComponents(_ components: [String]) -> NSURL? var pathComponents: [String]? { get } var lastPathComponent: String? { get } var pathExtension: String? { get } func URLByAppendingPathComponent(_ pathComponent: String) -> NSURL func URLByAppendingPathComponent(_ pathComponent: String, isDirectory isDirectory: Bool) -> NSURL @NSCopying var URLByDeletingLastPathComponent: NSURL? { get } func URLByAppendingPathExtension(_ pathExtension: String) -> NSURL @NSCopying var URLByDeletingPathExtension: NSURL? { get } @NSCopying var URLByStandardizingPath: NSURL? { get } @NSCopying var URLByResolvingSymlinksInPath: NSURL? { get } } extension NSURL : _Reflectable { } extension NSURL { required convenience init(fileReferenceLiteral path: String) } |
Modified NSURLProtectionSpace
Declaration | |
---|---|
From | class NSURLProtectionSpace : NSObject, NSSecureCoding, NSCopying { init(host host: String, port port: Int, `protocol` `protocol`: String?, realm realm: String?, authenticationMethod authenticationMethod: String?) init(proxyHost host: String, port port: Int, type type: String?, realm realm: String?, authenticationMethod authenticationMethod: String?) var realm: String? { get } var receivesCredentialSecurely: Bool { get } var host: String { get } var port: Int { get } var proxyType: String? { get } var `protocol`: String? { get } var authenticationMethod: String { get } func isProxy() -> Bool } extension NSURLProtectionSpace { var distinguishedNames: [NSData]? { get } } extension NSURLProtectionSpace { var serverTrust: SecTrust? { get } } |
To | class NSURLProtectionSpace : NSObject, NSSecureCoding, NSCopying { init(host host: String, port port: Int, protocol protocol: String?, realm realm: String?, authenticationMethod authenticationMethod: String?) init(proxyHost host: String, port port: Int, type type: String?, realm realm: String?, authenticationMethod authenticationMethod: String?) var realm: String? { get } var receivesCredentialSecurely: Bool { get } var host: String { get } var port: Int { get } var proxyType: String? { get } var `protocol`: String? { get } var authenticationMethod: String { get } func isProxy() -> Bool } extension NSURLProtectionSpace { var distinguishedNames: [NSData]? { get } } extension NSURLProtectionSpace { var serverTrust: SecTrust? { get } } |
Declaration | |
---|---|
From | init(host host: String, port port: Int, `protocol` `protocol`: String?, realm realm: String?, authenticationMethod authenticationMethod: String?) |
To | init(host host: String, port port: Int, protocol protocol: String?, realm realm: String?, authenticationMethod authenticationMethod: String?) |
Modified NSURLProtocolClient
Declaration | |
---|---|
From | protocol NSURLProtocolClient : NSObjectProtocol { func URLProtocol(_ `protocol`: NSURLProtocol, wasRedirectedToRequest request: NSURLRequest, redirectResponse redirectResponse: NSURLResponse) func URLProtocol(_ `protocol`: NSURLProtocol, cachedResponseIsValid cachedResponse: NSCachedURLResponse) func URLProtocol(_ `protocol`: NSURLProtocol, didReceiveResponse response: NSURLResponse, cacheStoragePolicy policy: NSURLCacheStoragePolicy) func URLProtocol(_ `protocol`: NSURLProtocol, didLoadData data: NSData) func URLProtocolDidFinishLoading(_ `protocol`: NSURLProtocol) func URLProtocol(_ `protocol`: NSURLProtocol, didFailWithError error: NSError) func URLProtocol(_ `protocol`: NSURLProtocol, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge) func URLProtocol(_ `protocol`: NSURLProtocol, didCancelAuthenticationChallenge challenge: NSURLAuthenticationChallenge) } |
To | protocol NSURLProtocolClient : NSObjectProtocol { func URLProtocol(_ protocol: NSURLProtocol, wasRedirectedToRequest request: NSURLRequest, redirectResponse redirectResponse: NSURLResponse) func URLProtocol(_ protocol: NSURLProtocol, cachedResponseIsValid cachedResponse: NSCachedURLResponse) func URLProtocol(_ protocol: NSURLProtocol, didReceiveResponse response: NSURLResponse, cacheStoragePolicy policy: NSURLCacheStoragePolicy) func URLProtocol(_ protocol: NSURLProtocol, didLoadData data: NSData) func URLProtocolDidFinishLoading(_ protocol: NSURLProtocol) func URLProtocol(_ protocol: NSURLProtocol, didFailWithError error: NSError) func URLProtocol(_ protocol: NSURLProtocol, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge) func URLProtocol(_ protocol: NSURLProtocol, didCancelAuthenticationChallenge challenge: NSURLAuthenticationChallenge) } |
Modified NSURLProtocolClient.URLProtocol(_: NSURLProtocol, cachedResponseIsValid: NSCachedURLResponse)
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, cachedResponseIsValid cachedResponse: NSCachedURLResponse) |
To | func URLProtocol(_ protocol: NSURLProtocol, cachedResponseIsValid cachedResponse: NSCachedURLResponse) |
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, didCancelAuthenticationChallenge challenge: NSURLAuthenticationChallenge) |
To | func URLProtocol(_ protocol: NSURLProtocol, didCancelAuthenticationChallenge challenge: NSURLAuthenticationChallenge) |
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, didFailWithError error: NSError) |
To | func URLProtocol(_ protocol: NSURLProtocol, didFailWithError error: NSError) |
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, didLoadData data: NSData) |
To | func URLProtocol(_ protocol: NSURLProtocol, didLoadData data: NSData) |
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge) |
To | func URLProtocol(_ protocol: NSURLProtocol, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge) |
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, didReceiveResponse response: NSURLResponse, cacheStoragePolicy policy: NSURLCacheStoragePolicy) |
To | func URLProtocol(_ protocol: NSURLProtocol, didReceiveResponse response: NSURLResponse, cacheStoragePolicy policy: NSURLCacheStoragePolicy) |
Declaration | |
---|---|
From | func URLProtocol(_ `protocol`: NSURLProtocol, wasRedirectedToRequest request: NSURLRequest, redirectResponse redirectResponse: NSURLResponse) |
To | func URLProtocol(_ protocol: NSURLProtocol, wasRedirectedToRequest request: NSURLRequest, redirectResponse redirectResponse: NSURLResponse) |
Declaration | |
---|---|
From | func URLProtocolDidFinishLoading(_ `protocol`: NSURLProtocol) |
To | func URLProtocolDidFinishLoading(_ protocol: NSURLProtocol) |