---
title: fileTypeFromLastRunSavePanel
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdocument/filetypefromlastrunsavepanel
---

# fileTypeFromLastRunSavePanel

The file type that was last selected in the Save panel.

## Declaration

```swift
nonisolated var fileTypeFromLastRunSavePanel: String? { get }
```

## Discussion

Discussion This type is primarily used by the save(_:), saveAs(_:), and saveTo(_:) methods to determine the type the user chose after the Save panel has been run. The string corresponds to the name of the document type as it is specified in the app’s Info.plist file.

## See Also

### Presenting a Save Panel

- [runModalSavePanel(for:delegate:didSave:contextInfo:)](appkit/nsdocument/runmodalsavepanel(for:delegate:didsave:contextinfo:).md)
- [prepareSavePanel(_:)](appkit/nsdocument/preparesavepanel(_:).md)
- [shouldRunSavePanelWithAccessoryView](appkit/nsdocument/shouldrunsavepanelwithaccessoryview.md)
- [fileNameExtensionWasHiddenInLastRunSavePanel](appkit/nsdocument/filenameextensionwashiddeninlastrunsavepanel.md)
