0

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

Lothar
  • 12,537
  • 6
  • 72
  • 121

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,656
  • 2
  • 50
  • 37