Colas
Colas

Reputation: 3573

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?

Upvotes: 5

Views: 513

Answers (1)

Stefan Fisk
Stefan Fisk

Reputation: 1573

Are you looking for -[NSDocument isDocumentEdited]?

Upvotes: 7

Related Questions