Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if an NSDocument has unsaved changes?

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?

like image 796
Colas Avatar asked Jan 23 '14 12:01

Colas


1 Answers

Are you looking for -[NSDocument isDocumentEdited]?

like image 133
Stefan Fisk Avatar answered Jan 01 '23 12:01

Stefan Fisk