views:

32

answers:

1

How can I cancel the automatic display of the Save Panel when closing windows in a doc based Cocoa app?

Thanks

Paul

A: 

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.

Mike Abdullah