apps-projectcenter/PCAppProj/AppController.m
Robert Slover 9d89925f00 default is YES in applicationShouldTerminate:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8540 72102866-910b-0410-8b05-ffd578937521
2001-01-10 12:56:18 +00:00

75 lines
1.2 KiB
Objective-C

/*
* AppController.m created by phr on 2000-08-27 11:38:58 +0000
*
* Project TestApp
*
* Created with ProjectCenter - http://www.projectcenter.ch
*
* $Id$
*/
#import "AppController.h"
@implementation AppController
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];
}
- (id)init
{
if ((self = [super init])) {
}
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void)awakeFromNib
{
}
- (void)applicationDidFinishLaunching:(NSNotification *)notif
{
}
- (BOOL)applicationShouldTerminate:(id)sender
{
return YES;
}
- (void)applicationWillTerminate:(NSNotification *)notification
{
}
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName
{
}
- (void)showPrefPanel:(id)sender
{
}
- (void)showInfoPanel:(id)sender
{
[[NSApplication sharedApplication] orderFrontStandardInfoPanel:sender];
}
@end