@@ -113,27 +113,20 @@ SIGNAL_HANDLER(SIGUSR2) #endif #undef SIGNAL_HANDLER int -of_application_main(int *argc, char **argv[], Class cls) +of_application_main(int *argc, char **argv[], + id delegate) { - id delegate; #ifdef OF_WINDOWS wchar_t **wargv, **wenvp; int wargc, si = 0; #endif [[OFLocalization alloc] init]; - if (![cls conformsToProtocol: @protocol(OFApplicationDelegate)]) { - fprintf(stderr, "FATAL ERROR:\n Class %s does not conform to " - "protocol OFApplicationDelegate,\n but was specified via " - "OF_APPLICATION_DELEGATE()!\n", class_getName(cls)); - exit(1); - } - app = [[OFApplication alloc] of_init]; [app of_setArgumentCount: argc andArgumentValues: argv]; @@ -141,11 +134,10 @@ __wgetmainargs(&wargc, &wargv, &wenvp, _CRT_glob, &si); [app of_setArgumentCount: wargc andWideArgumentValues: wargv]; #endif - delegate = [[cls alloc] init]; [app setDelegate: delegate]; [app of_run]; [delegate release];