---
title: "persistentStoreType(forFileType:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspersistentdocument/persistentstoretype(forfiletype:)"
---

# persistentStoreType(forFileType:)

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

## Declaration

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

## Parameters

- `fileType`: A document file type.

## Return Value

Return Value The type of persistent store associated with fileType. For possible values, see NSPersistentStoreCoordinator.

## Discussion

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

## See Also

### Managing the Persistence Objects

- [managedObjectContext](appkit/nspersistentdocument/managedobjectcontext.md)
- [managedObjectModel](appkit/nspersistentdocument/managedobjectmodel.md)
- [configurePersistentStoreCoordinator(for:ofType:modelConfiguration:storeOptions:)](appkit/nspersistentdocument/configurepersistentstorecoordinator(for:oftype:modelconfiguration:storeoptions:).md)
