Derek Fawcus wrote:
how about if the following was inserted before the call to setFrame:
newFrame.size = [_delegate windowWillResize: _wv toSize:
newFrame.size];
or more accurately, the block in setFrame:display: (with redundant
size
check and the delegate being supported) was moved from it
to here?
Explicit calls to the delegate should never be necessary for methods
like
windowWillResize:. Instead, the window automatically should register its
delegate to receive the corresponding notifications.
Uhmm, and that seems to be the problem: NSWindow's -setDelegate: just
lacks
a case for the NSWindowWillResize notification. Adding a line
SET_DELEGATE_NOTIFICATION(WillResize);
in -setDelegate: should fix the issue. Could you please test that
this fix
works. If so, I will commit it to the trunk.
Wolfgang
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev