views:

19

answers:

1

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.

+6  A: 

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

Saurabh Sharan