i’m porting a Windows application to Mac OS X Cocoa and it must be as similar as possible, so there is no “Close Window” Menu Item with a binded Shortcut in my menu.
But still i would like to be able to close them by Cmd+W Shortcut, is there a way to do this without handling keyDown event?
Ultimately i’ve implemented the Close
menu itemin my Main Menu that sendsperformClosetoFirst Responderand has the Cmd+W shortcut.