---
title: "revertToSavedFromURL:ofType:"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/reverttosavedfromurl:oftype:"
---

# revertToSavedFromURL:ofType:

Reverts the receiver.

## Declaration

```occ
- (BOOL) revertToSavedFromURL:(NSURL *) url ofType:(NSString *) type;
```

## Discussion

Discussion Reverts the receiver to the data stored at aURL of type type. Invokes readFromURL:ofType: and returns whether that method successfully read the file and processed the document data.

## See Also

### Methods

- [dataRepresentationOfType:](appkit/nsdocument/datarepresentationoftype:.md)
- [fileAttributesToWriteToFile:ofType:saveOperation:](appkit/nsdocument/fileattributestowritetofile:oftype:saveoperation:.md)
- [fileName](appkit/nsdocument/filename.md)
- [fileWrapperRepresentationOfType:](appkit/nsdocument/filewrapperrepresentationoftype:.md)
- [initWithContentsOfFile:ofType:](appkit/nsdocument/initwithcontentsoffile:oftype:.md)
- [initWithContentsOfURL:ofType:](appkit/nsdocument/initwithcontentsofurl:oftype:.md)
- [loadDataRepresentation:ofType:](appkit/nsdocument/loaddatarepresentation:oftype:.md)
- [loadFileWrapperRepresentation:ofType:](appkit/nsdocument/loadfilewrapperrepresentation:oftype:.md)
- [printShowingPrintPanel:](appkit/nsdocument/printshowingprintpanel:.md)
- [readFromFile:ofType:](appkit/nsdocument/readfromfile:oftype:.md)
- [readFromURL:ofType:](appkit/nsdocument/readfromurl:oftype:.md)
- [revertToSavedFromFile:ofType:](appkit/nsdocument/reverttosavedfromfile:oftype:.md)
- [runModalPageLayoutWithPrintInfo:](appkit/nsdocument/runmodalpagelayoutwithprintinfo:.md)
- [saveToFile:saveOperation:delegate:didSaveSelector:contextInfo:](appkit/nsdocument/savetofile:saveoperation:delegate:didsaveselector:contextinfo:.md)
- [saveToURL:ofType:forSaveOperation:error:](appkit/nsdocument/savetourl:oftype:forsaveoperation:error:.md)
