version 3.1 checkin
[TestXSLT.git] / AppDelegate.m
1 //
2 //  NSDocumentControllerNotificationCategory.m
3 //  TestXSLT
4 //
5 //  Created by Marc Liyanage on Sat Mar 29 2003.
6 //  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
7 //
8
9 #import "AppDelegate.h"
10
11 @implementation AppDelegate
12
13
14 - (id)init {
15
16         self = [super init];
17         if (!self) return nil;
18
19         NSString *templateXML = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"xml"]];
20         NSString *templateXSLT = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"xslt"]];
21         
22     NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:
23                 @"YES", @"enableWellformedCheck",
24                 @"YES", @"enableSyntaxAnalysis",
25                 templateXML, @"templateXML",
26                 templateXSLT, @"templateXSLT",
27                 nil];
28     [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
29         
30         return self;
31         
32 }
33
34
35 - (void)applicationWillTerminate:(NSNotification *)aNotification {
36         [prefsWindow orderOut:self];
37 }
38
39
40 @end