tags:

views:

30

answers:

1

Can't find the Cocoa API call to set the modified marker of a window.

+4  A: 

If you’re using the NSDocument architecture it should happen automatically.

If not, and you’re using NSWindowController, you should use its setDocumentEdited: method.

If you’re not using a window controller, use NSWindow’s setDocumentEdited: method.

Todd Yandell
I shouldn't start coding in the morning without a coffee. Thanks.
Lothar