How can I cancel the automatic display of the Save Panel when closing windows in a doc based Cocoa app?
Thanks
Paul
How can I cancel the automatic display of the Save Panel when closing windows in a doc based Cocoa app?
Thanks
Paul
For control on a per-window basis, override -canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
There's also similar methods on NSDocumentController for when there's more then one document with unsaved changes.
Agreed with Barry though, this is generally a bad idea.