I've written a few Cocoa/Obj-C applications before, but never document-based until now.
From what I've read in the documentation, the handling of save dialogues should be automatic, so that they just appear automatically before close/quit if changes have been made to the document. However, this is not happening for me, despite the fact that I've used "setDocumentEdited:YES" and the document window's close widget shows the little dot indicating that it's been edited.
But if I close the document window, or quit the application, it just closes/quits, without any save dialogue. Should it if fact be displaying the save dialogue automatically at this point?
If so, why would it not be working?
If not, how do I get it to work? The windowShouldClose delegate method doesn't get invoked on quit, only on close, so I'd have to get the applicationShouldTerminate to send performClose to all windows, but then according to the documentation, I shouldn't have to do this for document-based applications.
Any help much appreciated.