1

I have a main window from which I am presenting a sub window as the child of the main window. When I close the main window and then restore it from dock, both windows will come again. After that when I try to close my child window, main window is also getting closed. And when I restore it from dock, I see that close button of child window is disabled. This happens only in snow leopard. And it works fine in Lion.

Advaith
  • 1,087
  • 3
  • 12
  • 31

1 Answers1

0

I had the same problem. Fixed - simply in the child window delegate:

- (void)windowWillClose:(NSNotification *)notification
{
    [[self.window parentWindow] removeChildWindow:self.window];
}
Dmitry Isaev
  • 3,888
  • 2
  • 37
  • 49