<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/fileTypeFromLastRunSavePanel",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(py)fileTypeFromLastRunSavePanel"
  },
  "title" : "fileTypeFromLastRunSavePanel"
}
-->

# fileTypeFromLastRunSavePanel

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

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

## Discussion

This type is primarily used by the [`save(_:)`](/documentation/AppKit/NSDocument/save(_:)), [`saveAs(_:)`](/documentation/AppKit/NSDocument/saveAs(_:)), and [`saveTo(_:)`](/documentation/AppKit/NSDocument/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)