@@ -66,10 +66,11 @@ # define SA_RESTART 0 # endif #endif @interface OFApplication () +- (instancetype)OF_init OF_METHOD_FAMILY(init); - (void)OF_setArgumentCount: (int *)argc andArgumentValues: (char **[])argv; #ifdef OF_WINDOWS - (void)OF_setArgumentCount: (int)argc andWideArgumentValues: (wchar_t *[])argv; @@ -128,11 +129,11 @@ "with OF_APPLICATION_DELEGATE().\n", class_getName(cls), class_getName(cls)); exit(1); } - app = [[OFApplication alloc] init]; + app = [[OFApplication alloc] OF_init]; [app OF_setArgumentCount: argc andArgumentValues: argv]; #ifdef OF_WINDOWS @@ -198,11 +199,11 @@ { [app activateSandbox: sandbox]; } #endif -- init +- OF_init { self = [super init]; @try { void *pool;