apps-gorm/Documentation/Examples/Controller/WinController.m
Gregory John Casamento a7d656b579 More documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20194 72102866-910b-0410-8b05-ffd578937521
2004-10-04 03:56:28 +00:00

34 lines
486 B
Objective-C

/* All Rights reserved */
#include <AppKit/AppKit.h>
#include "WinController.h"
@implementation WinController
- (id) init
{
if((self = [super init]) != nil)
{
if([NSBundle loadNibNamed: @"Controller" owner: self] == NO)
{
NSLog(@"Problem loading interface");
return nil;
}
[window makeKeyAndOrderFront: self];
}
return self;
}
- (void) closeWindow: (id) sender
{
[window close];
}
- (void) dealloc
{
[super dealloc];
RELEASE(window);
}
@end