How to check if an NSDocument has unsaved changes?
Asked Answered
R

1

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?

Rue answered 23/1, 2014 at 12:43 Comment(0)
G
7

Are you looking for -[NSDocument isDocumentEdited]?

Gizmo answered 25/1, 2014 at 14:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.