Tidied launching

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4049 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-04-08 20:42:46 +00:00
parent a332c8f19c
commit c07241993d
4 changed files with 268 additions and 116 deletions

View file

@ -50,6 +50,34 @@
#include <AppKit/NSCursor.h>
@interface GSWindowView : NSView
{
}
@end
@implementation GSWindowView
- (BOOL) isOpaque
{
return YES;
}
- (void) drawRect: (NSRect)rect
{
NSColor *c = [[self window] backgroundColor];
[c set];
NSRectFill(rect);
}
- (Class) classForCoder: (NSCoder*)aCoder
{
if ([self class] == [GSWindowView class])
return [super class];
return [self class];
}
@end
//*****************************************************************************
//
@ -71,11 +99,6 @@
}
}
+ (NSView *) _windowViewWithFrame: (NSRect)frameRect // create the view at
{ // the root of window's
return nil; // view heirarchy.
} // (backend)
+ (void) removeFrameUsingName: (NSString *)name
{ // Saving and restoring
} // the window's frame
@ -208,13 +231,14 @@
{
NSView *wv;
if (!aView) // contentview can't be nil
// contentview can't be nil
if (!aView)
aView = [[[NSView alloc] initWithFrame: frame] autorelease];
// If window view has not
// been created, create it
// If window view has not been created, create it
if ((!content_view) || ([content_view superview] == nil))
{
wv = [NSWindow _windowViewWithFrame: frame];
wv = [[GSWindowView allocWithZone: [self zone]] initWithFrame: frame];
[wv viewWillMoveToWindow: self];
}
else