How to check if NSDocument has unsaved changes?

I know how to report NSDocumentthat there are new changes, p -(void)updateChangeCount:. But I cannot find a method changeCountor something like this to check if the NSDocument has unsaved changes.

Is there any way to check this?

+4
source share
1 answer

Are you looking for -[NSDocument isDocumentEdited]?

+6
source

Source: https://habr.com/ru/post/1523332/


All Articles