Marks the document’s interface-related state as dirty.
- macOS 10.7+
Call this method whenever the restorable state of your document changes. This method marks the document’s state as dirty, which causes that state to be written to disk at some point in the future. Do not override this method.