pub trait NSURL: Sized {
Show 64 methods
// Required methods
unsafe fn alloc(_: Self) -> id;
unsafe fn URLWithString_(_: Self, string: id) -> id;
unsafe fn initWithString_(self, string: id) -> id;
unsafe fn URLWithString_relativeToURL_(_: Self, string: id, url: id) -> id;
unsafe fn initWithString_relativeToURL_(self, string: id, url: id) -> id;
unsafe fn fileURLWithPath_isDirectory_(
_: Self,
path: id,
is_dir: BOOL
) -> id;
unsafe fn initFileURLWithPath_isDirectory_(
self,
path: id,
is_dir: BOOL
) -> id;
unsafe fn fileURLWithPath_relativeToURL_(_: Self, path: id, url: id) -> id;
unsafe fn initFileURLWithPath_relativeToURL_(self, path: id, url: id) -> id;
unsafe fn fileURLWithPath_isDirectory_relativeToURL_(
_: Self,
path: id,
is_dir: BOOL,
url: id
) -> id;
unsafe fn initFileURLWithPath_isDirectory_relativeToURL_(
self,
path: id,
is_dir: BOOL,
url: id
) -> id;
unsafe fn fileURLWithPath_(_: Self, path: id) -> id;
unsafe fn initFileURLWithPath_(self, path: id) -> id;
unsafe fn fileURLWithPathComponents_(_: Self, path_components: id) -> id;
unsafe fn URLByResolvingAliasFileAtURL_options_error_(
_: Self,
url: id,
options: NSURLBookmarkResolutionOptions,
error: *mut id
) -> id;
unsafe fn URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_(
_: Self,
data: id,
options: NSURLBookmarkResolutionOptions,
relative_to_url: id,
is_stale: *mut BOOL,
error: *mut id
) -> id;
unsafe fn initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_(
self,
data: id,
options: NSURLBookmarkResolutionOptions,
relative_to_url: id,
is_stale: *mut BOOL,
error: *mut id
) -> id;
unsafe fn absoluteURLWithDataRepresentation_relativeToURL_(
_: Self,
data: id,
url: id
) -> id;
unsafe fn initAbsoluteURLWithDataRepresentation_relativeToURL_(
self,
data: id,
url: id
) -> id;
unsafe fn URLWithDataRepresentation_relativeToURL_(
_: Self,
data: id,
url: id
) -> id;
unsafe fn initWithDataRepresentation_relativeToURL_(
self,
data: id,
url: id
) -> id;
unsafe fn dataRepresentation(self) -> id;
unsafe fn isEqual_(self, id: id) -> BOOL;
unsafe fn checkResourceIsReachableAndReturnError_(self, error: id) -> BOOL;
unsafe fn isFileReferenceURL(self) -> BOOL;
unsafe fn isFileURL(self) -> BOOL;
unsafe fn absoluteString(self) -> id;
unsafe fn absoluteURL(self) -> id;
unsafe fn baseURL(self) -> id;
unsafe fn fragment(self) -> id;
unsafe fn host(self) -> id;
unsafe fn lastPathComponent(self) -> id;
unsafe fn parameterString(self) -> id;
unsafe fn password(self) -> id;
unsafe fn path(self) -> id;
unsafe fn pathComponents(self) -> id;
unsafe fn pathExtension(self) -> id;
unsafe fn port(self) -> id;
unsafe fn query(self) -> id;
unsafe fn relativePath(self) -> id;
unsafe fn relativeString(self) -> id;
unsafe fn resourceSpecifier(self) -> id;
unsafe fn scheme(self) -> id;
unsafe fn standardizedURL(self) -> id;
unsafe fn user(self) -> id;
unsafe fn NSURLResourceKey(self) -> id;
unsafe fn filePathURL(self) -> id;
unsafe fn fileReferenceURL(self) -> id;
unsafe fn URLByAppendingPathComponent_(self, path_component: id) -> id;
unsafe fn URLByAppendingPathComponent_isDirectory_(
self,
path_component: id,
is_dir: BOOL
) -> id;
unsafe fn URLByAppendingPathExtension_(self, extension: id) -> id;
unsafe fn URLByDeletingLastPathComponent(self) -> id;
unsafe fn URLByDeletingPathExtension(self) -> id;
unsafe fn URLByResolvingSymlinksInPath(self) -> id;
unsafe fn URLByStandardizingPath(self) -> id;
unsafe fn hasDirectoryPath(self) -> BOOL;
unsafe fn bookmarkDataWithContentsOfURL_error_(
_: Self,
url: id,
error: id
) -> id;
unsafe fn bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_(
self,
options: NSURLBookmarkCreationOptions,
resource_value_for_keys: id,
relative_to_url: id,
error: id
) -> id;
unsafe fn writeBookmarkData_toURL_options_error_(
_: Self,
data: id,
to_url: id,
options: NSURLBookmarkFileCreationOptions,
error: id
) -> id;
unsafe fn startAccessingSecurityScopedResource(self) -> BOOL;
unsafe fn stopAccessingSecurityScopedResource(self);
unsafe fn NSURLBookmarkFileCreationOptions(
self
) -> NSURLBookmarkFileCreationOptions;
unsafe fn NSURLBookmarkCreationOptions(self) -> NSURLBookmarkCreationOptions;
unsafe fn NSURLBookmarkResolutionOptions(
self
) -> NSURLBookmarkResolutionOptions;
}