Hi All,
I am developing an mac application. And in one of the use cases, I prompt for an window with an OK button. I want the user to respond to the OK button on the window to close the window.
I have unchecked the "Close" option in the xib which disables the close option in the UI.
But if the user were to hit "Command + w" key when the window has focus, the window closes.
Is there a way by which I can ignore this command so that the window remains opened?
Tried implementing "windowShouldClose" delegate method, but found that this method does not get called at all. The documentation too says that this method is not reliable.
I am developing an mac application. And in one of the use cases, I prompt for an window with an OK button. I want the user to respond to the OK button on the window to close the window.
I have unchecked the "Close" option in the xib which disables the close option in the UI.
But if the user were to hit "Command + w" key when the window has focus, the window closes.
Is there a way by which I can ignore this command so that the window remains opened?
Tried implementing "windowShouldClose" delegate method, but found that this method does not get called at all. The documentation too says that this method is not reliable.