Initializer

init(resolvingBookmarkData:options:relativeTo:bookmarkDataIsStale:)

Initializes a newly created NSURL that points to a location specified by resolving bookmark data.

Declaration

convenience init(resolvingBookmarkData bookmarkData: Data, options: NSURL.BookmarkResolutionOptions = [], relativeTo relativeURL: URL?, bookmarkDataIsStale isStale: UnsafeMutablePointer<ObjCBool>?) throws

Parameters

bookmarkData

The bookmark data the URL is derived from.

options

Options taken into account when resolving the bookmark data.

relativeURL

The base URL that the bookmark data is relative to.

isStale

If true, the bookmark data is stale.

error

The error that occurred in the case that the URL cannot be created.

Return Value

An NSURL initialized by resolving bookmarkData.

Discussion