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"
11 @implementation AppDelegate
17 if (!self) return nil;
19 NSString *templateXML = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"xml"]];
20 NSString *templateXSLT = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"xslt"]];
22 NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:
23 @"YES", @"enableWellformedCheck",
24 @"YES", @"enableSyntaxAnalysis",
25 templateXML, @"templateXML",
26 templateXSLT, @"templateXSLT",
28 [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
35 - (void)applicationWillTerminate:(NSNotification *)aNotification {
36 [prefsWindow orderOut:self];