Differences From Artifact [a2406ebb91]:
- File src/OFApplication.m — part of check-in [a4494ec477] at 2012-09-11 16:48:49 on branch trunk — Add OFTimer and OFRunLoop. (user: js, size: 6885) [annotate] [blame] [check-ins using]
To Artifact [c50e9dd27b]:
- File
src/OFApplication.m
— part of check-in
[bba061e4b7]
at
2012-09-14 05:24:27
on branch trunk
— Create a pool for -[applicationDidFinishLaunching]
Before, when the application would exit after
-[applicationDidFinishLaunching], this was unnecessary. But now, without
this change, temporary objects might be kept alive while the run loop is
active. (user: js, size: 6966) [annotate] [blame] [check-ins using]
︙ | |||
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | + + + | REGISTER_SIGNAL(SIGUSR2) #endif #undef REGISTER_SIGNAL } - (void)run { void *pool; OFRunLoop *runLoop; [OFThread _createMainThread]; runLoop = [[[OFRunLoop alloc] init] autorelease]; [OFRunLoop _setMainRunLoop: runLoop]; pool = objc_autoreleasePoolPush(); [delegate applicationDidFinishLaunching]; objc_autoreleasePoolPop(pool); [runLoop run]; } - (void)terminate { exit(0); |
︙ |