Reads and loads document data of the given type from the given file.
- macOS 10.0–10.4Deprecated
Reads and loads document data of type
docType from the file
fileName, returning whether the operation was successful. This method invokes
loadDataRepresentation:ofType: and is invoked when the receiver is first created and initialized by
initWithContentsOfFile:ofType:. It uses
initWithContentsOfFile: to get the document data.
This method is one of the location-based primitives. Subclasses can override this method instead of overriding
loadDataRepresentation:ofType: to read and load document data. Subclasses that handle file packages such as RTFD or that treat locations of files as anything other than paths should override this method. Override implementations of this method can filter the document data using
NSPasteboard or other filtering services.
A primitive method overridden by subclasses to return a data object that represents the data of the receiver in a given type.
Returns the filename (as a fully qualified path) under which the receiver has been saved.
Saves the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and returns
YES if successful.
Sets the file (filename and directory path) under which document data is saved.
Validates the Revert menu item and items selected from the Save panel’s pop-up list of writable document types items.