+- (void)windowWillClose: (NSNotification *)notification
+{
+ wxCocoaNSWindow *win = wxCocoaNSWindow::GetFromCocoa([notification object]);
+ wxCHECK_RET(win,wxT("windowWillClose received but no wxWindow exists"));
+ win->CocoaDelegate_windowWillClose();
+}
+