mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 20:11:20 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20194 72102866-910b-0410-8b05-ffd578937521
34 lines
486 B
Objective-C
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
|