2 * Copyright (c) 2002-2012 David Kocher. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * Bug fixes, suggestions and comments should be sent to:
17 * dkocher@cyberduck.ch
21 #import <Cocoa/Cocoa.h>
23 int main(int argc, char *argv[]) {
24 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
26 return launch(argc, argv);
27 } @catch (NSException *exception) {
28 NSAlert *alert = [[NSAlert alloc] init];
29 [alert setAlertStyle:NSCriticalAlertStyle];
30 [alert setMessageText:[exception reason]];
31 [alert setInformativeText:@"The application failed to launch with a unrecoverable exception."];