# NSPersistentDocument class documentation

Generated at 2026-06-27 19:09:52 +0000
Software documentation for the NSPersistentDocument class
AppKit/NSPersistentDocument.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
canAsynchronouslyWriteToURL:
url
ofType:
type
forSaveOperation:
saveOp
Description forthcoming.
configurePersistentStoreCoordinatorForURL:
url
ofType:
fileType
error:
err
Description forthcoming.
configurePersistentStoreCoordinatorForURL:
url
ofType:
fileType
modelConfiguration:
config
storeOptions:
options
error:
err
Description forthcoming.
hasUndoManager
Description forthcoming.
isDocumentEdited
Description forthcoming.
managedObjectContext
Description forthcoming.
managedObjectModel
Description forthcoming.
persistentStoreTypeForFileType:
fileType
Description forthcoming.
readFromURL:
absoluteURL
ofType:
typeName
error:
err
Description forthcoming.
revertToContentsOfURL:
url
ofType:
type
error:
outErr
Description forthcoming.
setHasUndoManager:
flag
Description forthcoming.
setUndoManager:
manager
Description forthcoming.
writeToURL:
url
ofType:
type
forSaveOperation:
saveOp
originalContentsURL:
originalContents
error:
err
Description forthcoming.