Quick and dirty solution IB: put a button in the window, perhaps outside
its content view's bounds, set the button to respond to cmd-W, and set
it connect its action to the window's close method. In the absence of a
predictable menubar, this is the easy, code-free way of getting what you
want.