NSViewController

class NSViewController : NSResponder, NSEditor, NSSeguePerforming, NSUserInterfaceItemIdentification
  • Search for and create if necessary a common directory for the containing application.

    Throws

    Any error that FileManager.findOrCreateDirectory may throw.

    Declaration

    Swift

    func findOrCreateApplicationDirectory(for directory: FileManager.SearchPathDirectory,
                                          in domain: FileManager.SearchPathDomainMask) throws -> URL

    Parameters

    directory

    The directory we are searching for.

    domain

    The search domain.

    Return Value

    The URL of the found directory.