Reverts a document to the most recent document data stored on-disk.
- iOS 5.0+
A file URL locating the most recent version of the document file in the application’s sandbox.
You call this method to discard all unsaved document modifications and replace the document's contents by reading the file or file package located by
url. The default implementation brackets the reversion operation between
enablebecause the document should not accept user changes during this period. Subclasses that override this method must call the superclass implementation (
super) or use the
NSFile class to initiate a coordinated read.