---
title: defaultFileName
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspdfpanel/defaultfilename
---

# defaultFileName

The initial value for the user-editable filename shown in the name field of the PDF panel.

## Declaration

```swift
var defaultFileName: String { get set }
```

## Discussion

Discussion The defaultFileName string should never include a file extension. By default, the string’s value is “Untitled” (or its equivalent for the current locale).

## See Also

### Managing the Contents of a PDF Panel

- [accessoryController](appkit/nspdfpanel/accessorycontroller.md)
- [options](appkit/nspdfpanel/options-swift.property.md)
