Makefiles changed to GNUmakefile.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ovidiu 1997-10-28 20:44:38 +00:00
parent 807247e979
commit 1f8f64b47b
19 changed files with 162 additions and 922 deletions

View file

@ -70,7 +70,8 @@
border_type = NSLineBorder;
title_position = NSAtTop;
title_rect = NSZeroRect;
[self setContentView: [[NSView alloc] init]];
content_view = [NSView new];
[super addSubview:content_view];
return self;
}
@ -169,26 +170,11 @@
- (void)setContentView:(NSView *)aView
{
if (content_view)
{
// Tell view that it is no longer in a window
[content_view viewWillMoveToWindow:nil];
[content_view release];
}
[aView retain];
[content_view release];
content_view = aView;
[content_view retain];
// We only have one view in our subview array
[sub_views release];
sub_views = [NSMutableArray array];
if ([sub_views count] == 0)
{
[sub_views addObject:aView];
}
[content_view setSuperview:self];
[content_view setNextResponder:self];
[content_view viewWillMoveToWindow:window];
[self replaceSubview:content_view with:aView];
[content_view setFrame: [self calcSizes]];
}