Tutorial :Updating NSDocument status without undo?



Question:

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.


Solution:1

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


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »