Rebecca Morgan
Rebecca Morgan

Reputation: 169

Updating NSDocument status without undo?

I have a document-based application but I am not using undo. How do I change the status of my window to be 'dirty' and certain times?

Thanks.

Upvotes: 1

Views: 215

Answers (1)

Saurabh Sharan
Saurabh Sharan

Reputation:

NSDocument has an -updateChangeCount: method. The constants you can pass are described in Apple's documentation.

Upvotes: 6

Related Questions