Instance Method

applicationOpenUntitledFile(_:)

Tells the delegate to open an untitled file.

Declaration

optional func applicationOpenUntitledFile(_ sender: NSApplication) -> Bool

Parameters

theApplication

The application object associated with the delegate.

Return Value

true if the file was successfully opened or false if it was not.

Discussion

Sent directly by theApplication to the delegate to request that a new, untitled file be opened.

See Also

Opening Files

func application(NSApplication, openFile: String) -> Bool

Tells the delegate to open a single file.

func application(Any, openFileWithoutUI: String) -> Bool

Tells the delegate to open a file programmatically.

func application(NSApplication, openTempFile: String) -> Bool

Tells the delegate to open a temporary file.

func application(NSApplication, openFiles: [String])

Tells the delegate to open multiple files.

func applicationShouldOpenUntitledFile(NSApplication) -> Bool

Invoked immediately before opening an untitled file.