gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windowWillResize delegate not invoked (bug #24093)


From: Wolfgang Lux
Subject: Re: windowWillResize delegate not invoked (bug #24093)
Date: Sat, 9 May 2009 18:04:26 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]