0

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

Lothar
  • 11,739
  • 5
  • 69
  • 112

1 Answers1

6

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
  • 14,578
  • 2
  • 49
  • 37