Include a window's decoration view in its responder chain so that

dynamic target look up works for toolbar items.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27628 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2009-01-18 15:52:06 +00:00
parent f7e864e8ab
commit 431f3f280f
2 changed files with 5 additions and 2 deletions

View file

@ -21,6 +21,10 @@
* Source/NSApplication.m (-_targetForAction:keyWindow:mainWindow:):
Helper method to consolidate target look up in the responder chain.
* Source/NSWindow.m (-initWithContentRect:..., -setContentView:):
Include a window's decoration view in its responder chain so that
dynamic target look up works for toolbar items.
2009-01-17 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSDocument.m (-windowForSheet): Return nil if the

View file

@ -1008,6 +1008,7 @@ many times.
_wv = [windowDecorator newWindowDecorationViewWithFrame: cframe
window: self];
[_wv _viewWillMoveToWindow: self];
[_wv setNextResponder: self];
/* Create the content view */
cframe.origin = NSZeroPoint;
@ -1119,8 +1120,6 @@ many times.
_contentView = aView;
[_wv setContentView: _contentView];
[_contentView setNextResponder: self];
}
/*