Restores the interface-related state of the document.
- macOS 10.7+
The coder object to use to restore the document’s interface-related state.
This method is part of the window restoration system and is called at launch time to restore the window-related state of your document object. The default implementation restores some basic information about the document. If you override this method, you must call
super at some point in your implementation.
Subclasses can override this method and use it to restore the document-related information that was saved in the
encode method. You can also use this method to reconfigure the document (or its associated window controller and window) to their previous appearance.
For information about using a coder object to read data from an archive, see Archives and Serializations Programming Guide.