Are you looking for -[NSDocument isDocumentEdited]
?
How to check if an NSDocument has unsaved changes?
-
01-10-2022 - |
Domanda
I know how to tell NSDocument
that there are new changes, with -(void)updateChangeCount:
. But, I can't find a method changeCount
or something like this to check if an NSDocument has unsaved changes.
Is there a way to check that?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow