Question
Prevent document close by close icon (X)
Does anyone know how to prevent a document from being closed if the user clicks on the close icon ("X") on the upper right corner of the document window?
I've established a document signal responder and am receiving the "kBeforeCloseDocSignalResponderService" signal when the close icon is clicked but I've been unable to stop or cancel the close process at this point.
My plug-in manages the opening and closing of certain documents automatically for the user and I don't want the user to prematurely close a document this way. I'm able to disable the close menu item for these documents so they can't be closed that way but I haven't been able to prevent the close icon from closing them.
Any suggestions?
I've established a document signal responder and am receiving the "kBeforeCloseDocSignalResponderService" signal when the close icon is clicked but I've been unable to stop or cancel the close process at this point.
My plug-in manages the opening and closing of certain documents automatically for the user and I don't want the user to prematurely close a document this way. I'm able to disable the close menu item for these documents so they can't be closed that way but I haven't been able to prevent the close icon from closing them.
Any suggestions?