---
title: "applicationOpenUntitledFile(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsapplicationdelegate/applicationopenuntitledfile(_:)"
---

# applicationOpenUntitledFile(_:)

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

## Declaration

```swift
@MainActor optional func applicationOpenUntitledFile(_ sender: NSApplication) -> Bool
```

## Parameters

- `sender`: The application object associated with the delegate.

## Return Value

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

## Discussion

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

## See Also

### Opening Files

- [application(_:open:)](appkit/nsapplicationdelegate/application(_:open:).md)
- [application(_:openFile:)](appkit/nsapplicationdelegate/application(_:openfile:).md)
- [application(_:openFileWithoutUI:)](appkit/nsapplicationdelegate/application(_:openfilewithoutui:).md)
- [application(_:openTempFile:)](appkit/nsapplicationdelegate/application(_:opentempfile:).md)
- [application(_:openFiles:)](appkit/nsapplicationdelegate/application(_:openfiles:).md)
- [applicationShouldOpenUntitledFile(_:)](appkit/nsapplicationdelegate/applicationshouldopenuntitledfile(_:).md)
