1

In an application like TextEdit, if the user attempts to close a new document, a special NSSavePanel is displayed.

example TextEdit dialog

Is there any way that I can create an NSSavePanel that resembles this dialog? The only hook that I can find is the message string, but it is not obvious to me how a message string could include icons and formatting. Also, there is the special Delete button.

Alan Snyder
  • 408
  • 2
  • 13
  • 1
    This save panel is created by `NSDocument` using private methods. A document based app automagically shows this panel when a dirty document window is closed. – Willeke Aug 15 '21 at 16:23
  • For the panel look like this, you also need to return `true` for `autosavesInPlace` in your `NSDocument` subclass. – Tritonal Oct 12 '21 at 11:25

0 Answers0