reopenDocumentForURL:withContentsOfURL:error:
Reopens an autosaved document located by a URL, by reading the contents for the document from another URL, presents its user interface, and returns true if successful.
Declaration
- (BOOL) reopenDocumentForURL:(NSURL *) url withContentsOfURL:(NSURL *) contentsURL error:(NSError **) outError;Discussion
The document is located by absoluteDocumentURL and the contents are read from absoluteDocumentContentsURL. If not successful, the method returns false after setting outError to point to an NSError object that encapsulates the reason why the document could not be reopened.
See Also
Deprecated Methods
documentForFileName:fileExtensionsFromType:fileNamesFromRunningOpenPanelmakeUntitledDocumentOfType:makeDocumentWithContentsOfURL:ofType:makeDocumentWithContentsOfFile:ofType:openDocumentWithContentsOfFile:display:openDocumentWithContentsOfURL:display:openDocumentWithContentsOfURL:display:error:openUntitledDocumentOfType:display:setShouldCreateUI:shouldCreateUItypeFromFileExtension: