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;
if (cls != Nil)
delegate = [[cls alloc] init];
app = [OFApplication sharedApplication];
[app setArgumentCount: argc
|
|
|
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;
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
|
}
- (OFDictionary*)environment
{
return [[environment retain] autorelease];
}
- (id)delegate
{
return [[delegate retain] autorelease];
}
- (void)setDelegate: (id)delegate_
{
id old = delegate;
delegate = [delegate_ retain];
[old release];
}
- (void)run
|
|
|
|
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];
}
- (OFObject <OFApplicationDelegate>*)delegate
{
return [[delegate retain] autorelease];
}
- (void)setDelegate: (OFObject <OFApplicationDelegate>*)delegate_
{
id old = delegate;
delegate = [delegate_ retain];
[old release];
}
- (void)run
|