<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPersistentDocument/persistentStoreType(forFileType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentDocument(im)persistentStoreTypeForFileType:"
  },
  "title" : "persistentStoreType(forFileType:)"
}
-->

# persistentStoreType(forFileType:)

Returns the type of persistent store associated with the specified file type.

```
func persistentStoreType(forFileType fileType: String) -> String
```

## Parameters

`fileType`

A document file type.

## Return Value

The type of persistent store associated with `fileType`. For possible values, see <doc://com.apple.documentation/documentation/CoreData/NSPersistentStoreCoordinator>.

## Discussion

You set the persistent store type in the application’s property list.

---

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)