mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +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
7210cb4bb4
commit
f3a278659e
2 changed files with 5 additions and 2 deletions
|
@ -21,6 +21,10 @@
|
||||||
* Source/NSApplication.m (-_targetForAction:keyWindow:mainWindow:):
|
* Source/NSApplication.m (-_targetForAction:keyWindow:mainWindow:):
|
||||||
Helper method to consolidate target look up in the responder chain.
|
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>
|
2009-01-17 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/NSDocument.m (-windowForSheet): Return nil if the
|
* Source/NSDocument.m (-windowForSheet): Return nil if the
|
||||||
|
|
|
@ -1008,6 +1008,7 @@ many times.
|
||||||
_wv = [windowDecorator newWindowDecorationViewWithFrame: cframe
|
_wv = [windowDecorator newWindowDecorationViewWithFrame: cframe
|
||||||
window: self];
|
window: self];
|
||||||
[_wv _viewWillMoveToWindow: self];
|
[_wv _viewWillMoveToWindow: self];
|
||||||
|
[_wv setNextResponder: self];
|
||||||
|
|
||||||
/* Create the content view */
|
/* Create the content view */
|
||||||
cframe.origin = NSZeroPoint;
|
cframe.origin = NSZeroPoint;
|
||||||
|
@ -1119,8 +1120,6 @@ many times.
|
||||||
_contentView = aView;
|
_contentView = aView;
|
||||||
|
|
||||||
[_wv setContentView: _contentView];
|
[_wv setContentView: _contentView];
|
||||||
|
|
||||||
[_contentView setNextResponder: self];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue