View AppDelegate+runChakraThread.m
- (void)runJSVMThread { | |
[[[ChakraProxy alloc] init] run]; | |
NSRunLoop *runloop = [NSRunLoop currentRunLoop]; | |
while (true) { | |
[runloop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; | |
} | |
} |
View AppDelegate+applicationDidFinishLaunching.m
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { | |
_jsvmThread = [[NSThread alloc] initWithTarget:self | |
selector:@selector(runJSVMThread) | |
object:nil]; | |
[_jsvmThread start]; | |
} |
NewerOlder