Overview
Comment: | Create a pool for -[applicationDidFinishLaunching]
Before, when the application would exit after |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bba061e4b7af4642199ae91770380371 |
User & Date: | js on 2012-09-14 05:24:27 |
Other Links: | manifest | tags |
Context
2012-09-14
| ||
05:36 | OFRunLoop: Remove the key for the stream. check-in: 13eb2bf77b user: js tags: trunk | |
05:24 | Create a pool for -[applicationDidFinishLaunching] check-in: bba061e4b7 user: js tags: trunk | |
05:20 | Implement async reading (into buffers and lines). check-in: a2b309b38a user: js tags: trunk | |
Changes
Modified src/OFApplication.m from [a2406ebb91] to [c50e9dd27b].
︙ | ︙ | |||
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | REGISTER_SIGNAL(SIGUSR2) #endif #undef REGISTER_SIGNAL } - (void)run { OFRunLoop *runLoop; [OFThread _createMainThread]; runLoop = [[[OFRunLoop alloc] init] autorelease]; [OFRunLoop _setMainRunLoop: runLoop]; [delegate applicationDidFinishLaunching]; [runLoop run]; } - (void)terminate { exit(0); | > > > | 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); |
︙ | ︙ |