2 // NSDocumentControllerNotificationCategory.m
5 // Created by Marc Liyanage on Sat Mar 29 2003.
6 // Copyright (c) 2003 __MyCompanyName__. All rights reserved.
9 #import "AppDelegate.h"
10 #import <Foundation/NSDebug.h>
12 @implementation AppDelegate
18 if (!self) return nil;
20 NSZombieEnabled = YES;
22 NSString *templateXML = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"xml"]];
23 NSString *templateXSLT = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"xslt"]];
24 NSLog(@"AppDelegate init");
25 NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:
26 @"YES", @"enableWellformedCheck",
27 @"YES", @"enableSyntaxAnalysis",
28 templateXML, @"templateXML",
29 templateXSLT, @"templateXSLT",
31 [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
38 - (void)applicationWillTerminate:(NSNotification *)aNotification {
39 [prefsWindow orderOut:self];