]> err.no Git - sope/blob - sopex/Samples/WOxExtTest/Application.m
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1201 e4a50df8-12e2-0310-a44c...
[sope] / sopex / Samples / WOxExtTest / Application.m
1 //
2 // Application.m
3 // Project WOExtTest
4 //
5 // Created by helge on Mon Feb 16 2004
6 //
7
8 #include "Application.h"
9
10 @implementation Application
11
12 - (id)init {
13   if ((self = [super init])) {
14     WORequestHandler *rh;
15     
16     rh = [[NSClassFromString(@"OWViewRequestHandler") alloc] init];
17     [self setDefaultRequestHandler:rh];
18     [self registerRequestHandler:rh
19           forKey:[WOApplication componentRequestHandlerKey]];
20     [rh release]; rh = nil;
21   }
22   return self;
23 }
24
25 - (WOResponse *)handleException:(NSException *)_exc
26   inContext:(WOContext *)_ctx
27 {
28   printf("%s\n", [[_exc description] cString]);
29   abort();
30 }
31
32 @end /* Application */