5

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?

Colas
  • 3,473
  • 4
  • 29
  • 68

1 Answers1

7

Are you looking for -[NSDocument isDocumentEdited]?

Stefan Fisk
  • 1,563
  • 13
  • 19