mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
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:
parent
f7e864e8ab
commit
431f3f280f
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue