Contents

applicationShouldOpenUntitledFile(_:)

Returns a Boolean value that indicates if the app can open an untitled file.

Declaration

@MainActor optional func applicationShouldOpenUntitledFile(_ sender: NSApplication) -> Bool

Parameters

  • sender:

    The application object associated with the delegate.

Return Value

true if the application should open a new untitled file or false if it should not.

Discussion

Use this method to decide whether the application should open a new, untitled file. Note that applicationOpenUntitledFile(_:) is invoked if this method returns true.

See Also

Opening Files