Differences From Artifact [93776e4552]:
- File src/OFApplication.m — part of check-in [3659c87c63] at 2012-09-06 19:13:50 on branch trunk — Add -[OFString initWithUTF8String:freeWhenDone:]. (user: js, size: 6681) [annotate] [blame] [check-ins using]
To Artifact [a06fbcf0e7]:
- File
src/OFApplication.m
— part of check-in
[24622e8913]
at
2012-09-09 12:31:52
on branch trunk
— Loop forever after applicationDidFinishLaunching.
This is in preparation for adding an event loop, so that applications
which do not require a run loop will already adopt to calling
[OFApplication terminate] at the end of
-[applicationDidFinishLaunching]. (user: js, size: 6755) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #include <signal.h> #import "OFApplication.h" #import "OFString.h" #import "OFArray.h" #import "OFDictionary.h" #import "OFNotImplementedException.h" #import "autorelease.h" #if defined(__MACH__) && !defined(OF_IOS) # include <crt_externs.h> | > | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #include <signal.h> #import "OFApplication.h" #import "OFString.h" #import "OFArray.h" #import "OFDictionary.h" #import "OFThread.h" #import "OFNotImplementedException.h" #import "autorelease.h" #if defined(__MACH__) && !defined(OF_IOS) # include <crt_externs.h> |
︙ | ︙ | |||
291 292 293 294 295 296 297 298 299 300 301 302 303 304 | #endif #undef REGISTER_SIGNAL } - (void)run { [delegate applicationDidFinishLaunching]; } - (void)terminate { exit(0); } | > > > | 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | #endif #undef REGISTER_SIGNAL } - (void)run { [delegate applicationDidFinishLaunching]; for (;;) [OFThread sleepForTimeInterval: 86400]; } - (void)terminate { exit(0); } |
︙ | ︙ |