Implemented viewDidMoveToWindow:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21675 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-08-25 07:30:13 +00:00
parent f12e95ec66
commit bf2bd2d0a3
2 changed files with 23 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-25 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSView.m: ([viewDidMoveToWindow:]) Implemented to send to
subviews as it should.
2005-08-22 14:36 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSInterfaceStyle.m: -[GSInterfaceStyle

View file

@ -796,7 +796,24 @@ GSSetDragTypes(NSView* obj, NSArray *types)
{}
- (void) viewDidMoveToWindow
{}
{
if (_rFlags.has_subviews)
{
unsigned count = [_sub_views count];
if (count > 0)
{
unsigned i;
NSView *array[count];
[_sub_views getObjects: array];
for (i = 0; i < count; ++i)
{
[array[i] viewDidMoveToWindow: newWindow];
}
}
}
}
- (void) willRemoveSubview: (NSView *)subview
{}