ObjFW  Diff

Differences From Artifact [9f8423320a]:

To Artifact [34ff9074e3]:


121
122
123
124
125
126
127
128
129
130



131
132
133

134
135
136
137
138
139
140
141
121
122
123
124
125
126
127



128
129
130



131

132
133
134
135
136
137
138







-
-
-
+
+
+
-
-
-
+
-







#ifdef OF_WINDOWS
	wchar_t **wargv, **wenvp;
	int wargc, si = 0;
#endif

	[[OFLocalization alloc] init];

	if ([cls isSubclassOfClass: [OFApplication class]]) {
		fprintf(stderr, "FATAL ERROR:\n  Class %s is a subclass of "
		    "class OFApplication, but class\n  %s was specified as "
	if (![cls conformsToProtocol: @protocol(OFApplicationDelegate)]) {
		fprintf(stderr, "FATAL ERROR:\n  Class %s does not conform to "
		    "protocol OFApplicationDelegate,\n  but was specified via "
		    "application delegate!\n  Most likely, you wanted to "
		    "subclass OFObject instead or specified\n  the wrong class "
		    "with OF_APPLICATION_DELEGATE().\n",
		    "OF_APPLICATION_DELEGATE()!\n", class_getName(cls));
		    class_getName(cls), class_getName(cls));
		exit(1);
	}

	app = [[OFApplication alloc] of_init];

	[app of_setArgumentCount: argc
	       andArgumentValues: argv];