I am using Cocoa with Obj C
I am having a window and implemented windowWillCloseNSNotification *)aNotification which works fine only when I click "x" on the top left of the window.
But when I use the keyboard Command+W, the window is closed, but this is not calling windowWillClose. why? How to handle it?
I am having a window and implemented windowWillCloseNSNotification *)aNotification which works fine only when I click "x" on the top left of the window.
But when I use the keyboard Command+W, the window is closed, but this is not calling windowWillClose. why? How to handle it?