FileBookmark
public enum FileBookmark
Persistent file bookmark utilities
-
Get an optional bookmark URL
Declaration
Swift
static func getBookmarkURL(_ bookmark: CustomFile) throws -> URL?
Parameters
bookmark
The
CustomFile
Return Value
An URL if found
-
Set an bookmark URL
Declaration
Swift
static func setBookmarkURL(_ bookmark: CustomFile, _ selectedURL: URL)
Parameters
bookmark
The
CustomFile
selectedURL
The URL to set
-
Stop access to a persistent URL after some time
Note
Always call this function after you are done with the access or else Apple will be really upset!Declaration
Swift
static func stopCustomFileAccess(persistentURL: URL)
Parameters
persistentURL
The
URL
that has accessed -
Open an URL in the Finder
Declaration
Swift
public static func openInFinder(url: URL?)
Parameters
url
The URL to open