Use the updateChangeCount:
method with NSChangeDone
as argument.
Tell NSDocument that the document has been modified
-
30-07-2022 - |
Frage
I'm writing a Document-Based App in OSX. I found when I change the contents of the doc, the app doesn't know the document has been changed. I can close the doc without warning, which causes my unsaved content to be lost.
How can I tell NSDocument
that the document has been modified?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow