NSURL
class NSURL
class NSURL
import Foundation
class NSObject
The root class of most Foundation class hierarchies.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSCoding
The NSCoding
protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces).
protocol NSCopying
The NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
protocol NSSecureCoding : NSCoding
Conforming to the NSSecureCoding
protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.
protocol Sendable
init(absoluteURLWithDataRepresentation data: Data, relativeTo baseURL: URL?)
required convenience init?(coder aDecoder: NSCoder)
init(dataRepresentation data: Data, relativeTo baseURL: URL?)
convenience init(fileURLWithFileSystemRepresentation path: UnsafePointer<Int8>, isDirectory isDir: Bool, relativeTo baseURL: URL?)
init(fileURLWithPath path: String)
convenience init(fileURLWithPath path: String, isDirectory isDir: Bool)
init(fileURLWithPath path: String, isDirectory isDir: Bool, relativeTo baseURL: URL?)
convenience init(fileURLWithPath path: String, relativeTo baseURL: URL?)
convenience init?(string URLString: String)
init?(string URLString: String, relativeTo baseURL: URL?)
static var supportsSecureCoding: Bool { get }
class func fileURL(withPathComponents components: [String]) -> URL?
var absoluteString: String { get }
var absoluteURL: URL? { get }
var baseURL: URL? { get }
var dataRepresentation: Data { get }
var deletingLastPathComponent: URL? { get }
var deletingPathExtension: URL? { get }
override var description: String { get }
var filePathURL: URL? { get }
var fileSystemRepresentation: UnsafePointer<Int8> { get }
var fragment: String? { get }
var hasDirectoryPath: Bool { get }
override var hash: Int { get }
var host: String? { get }
var isFileURL: Bool { get }
var lastPathComponent: String? { get }
var password: String? { get }
var path: String? { get }
var pathComponents: [String]? { get }
var pathExtension: String? { get }
var port: NSNumber? { get }
var query: String? { get }
var relativePath: String? { get }
var relativeString: String { get }
var resolvingSymlinksInPath: URL? { get }
var resourceSpecifier: String? { get }
var scheme: String? { get }
var standardized: URL? { get }
var standardizingPath: URL? { get }
var user: String? { get }
func appendingPathComponent(_ pathComponent: String) -> URL?
func appendingPathComponent(_ pathComponent: String, isDirectory: Bool) -> URL?
func appendingPathExtension(_ pathExtension: String) -> URL?
func checkResourceIsReachable() throws -> Bool
override func copy() -> Any
func copy(with zone: NSZone? = nil) -> Any
func encode(with aCoder: NSCoder)
func getFileSystemRepresentation(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferLength: Int) -> Bool
func getResourceValue(_ value: inout AnyObject?, forKey key: URLResourceKey) throws
override func isEqual(_ object: Any?) -> Bool
func removeAllCachedResourceValues()
func removeCachedResourceValue(forKey key: URLResourceKey)
func resourceValues(forKeys keys: [URLResourceKey]) throws -> [URLResourceKey : Any]
func setResourceValue(_ value: Any?, forKey key: URLResourceKey) throws
func setResourceValues(_ keyedValues: [URLResourceKey : Any]) throws
func setTemporaryResourceValue(_ value: Any?, forKey key: URLResourceKey)
var parameterString: String? { get }