diff options
Diffstat (limited to 'platform/ios/main.m')
-rw-r--r-- | platform/ios/main.m | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/platform/ios/main.m b/platform/ios/main.m index 516ced70..dd2bc30e 100644 --- a/platform/ios/main.m +++ b/platform/ios/main.m @@ -1,18 +1,17 @@ #import <UIKit/UIKit.h> +#import "MuAppDelegate.h" int main(int argc, char *argv[]) { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - int retVal; + @autoreleasepool { + @try { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([MuAppDelegate class])); + } + @catch (NSException* exception) { + NSLog(@"Uncaught exception %@", exception); + NSLog(@"Stack trace: %@", [exception callStackSymbols]); + } - @try { - retVal = UIApplicationMain(argc, argv, nil, @"MuAppDelegate"); + return 0; } - @catch (NSException* exception) { - NSLog(@"Uncaught exception %@", exception); - NSLog(@"Stack trace: %@", [exception callStackSymbols]); - } - - [pool release]; - return retVal; } |