2000-08-27 19:11:42 +00:00
|
|
|
/*
|
|
|
|
* AppController.m created by phr on 2000-08-27 11:38:58 +0000
|
|
|
|
*
|
2002-01-02 12:13:06 +00:00
|
|
|
* GNUstep Application Controller
|
2000-08-27 19:11:42 +00:00
|
|
|
*
|
2001-08-03 14:23:25 +00:00
|
|
|
* Created with ProjectCenter - http://www.gnustep.org
|
2000-08-27 19:11:42 +00:00
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import "AppController.h"
|
|
|
|
|
|
|
|
@implementation AppController
|
|
|
|
|
2000-09-20 08:50:08 +00:00
|
|
|
static NSDictionary *infoDict = nil;
|
|
|
|
|
|
|
|
+ (void)initialize
|
|
|
|
{
|
|
|
|
NSMutableDictionary *defaults = [NSMutableDictionary dictionary];
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Register your app's defaults here by adding objects to the
|
|
|
|
* dictionary, eg
|
|
|
|
*
|
|
|
|
* [defaults setObject:anObject forKey:keyForThatObject];
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
|
|
|
|
[[NSUserDefaults standardUserDefaults] synchronize];
|
|
|
|
}
|
|
|
|
|
2000-08-27 19:11:42 +00:00
|
|
|
- (id)init
|
|
|
|
{
|
|
|
|
if ((self = [super init])) {
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)dealloc
|
|
|
|
{
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)awakeFromNib
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2000-09-14 08:54:19 +00:00
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)notif
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-01-03 06:38:23 +00:00
|
|
|
- (BOOL)applicationShouldTerminate:(id)sender
|
2000-09-20 08:50:08 +00:00
|
|
|
{
|
2001-01-10 12:56:18 +00:00
|
|
|
return YES;
|
2000-09-20 08:50:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)applicationWillTerminate:(NSNotification *)notification
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2000-09-14 08:54:19 +00:00
|
|
|
- (void)showPrefPanel:(id)sender
|
|
|
|
{
|
|
|
|
}
|
2000-09-20 08:50:08 +00:00
|
|
|
|
2000-10-15 12:36:06 +00:00
|
|
|
- (void)showInfoPanel:(id)sender
|
|
|
|
{
|
|
|
|
[[NSApplication sharedApplication] orderFrontStandardInfoPanel:sender];
|
|
|
|
}
|
|
|
|
|
2000-08-27 19:11:42 +00:00
|
|
|
@end
|