ObjFW  Diff

Differences From Artifact [78ea526057]:

To Artifact [728d40e47c]:


38
39
40
41
42
43
44
45

46
47
48
49
50
51
52
38
39
40
41
42
43
44

45
46
47
48
49
50
51
52







-
+







	[delegate applicationWillTerminate];
}

int
of_application_main(int argc, char *argv[], Class cls)
{
	OFApplication *app;
	id delegate = nil;
	OFObject <OFApplicationDelegate> *delegate = nil;

	if (cls != Nil)
		delegate = [[cls alloc] init];

	app = [OFApplication sharedApplication];

	[app setArgumentCount: argc
164
165
166
167
168
169
170
171

172
173
174
175
176

177
178
179
180
181
182
183
164
165
166
167
168
169
170

171
172
173
174
175

176
177
178
179
180
181
182
183







-
+




-
+







}

- (OFDictionary*)environment
{
	return [[environment retain] autorelease];
}

- (id)delegate
- (OFObject <OFApplicationDelegate>*)delegate
{
	return [[delegate retain] autorelease];
}

- (void)setDelegate: (id)delegate_
- (void)setDelegate: (OFObject <OFApplicationDelegate>*)delegate_
{
	id old = delegate;
	delegate = [delegate_ retain];
	[old release];
}

- (void)run