5 // Created by tkawata on 12/26/11.
6 // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
9 #include "TKJSContainer.h"
10 #include "DNContainerBuilder.h"
11 #include "DNDirectory.h"
12 #include "DNFileList.h"
16 #import "AppDelegate.h"
18 @implementation AppDelegate
20 @synthesize window = _window;
23 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
25 console = new TKConsole();
26 TKLog::setDestination(console);
28 // Insert code here to initialize your application
29 NSURL *path = [[NSURL alloc]initWithString:NSHomeDirectory()];
30 [uiPathControl setURL:path];
33 -(IBAction)pathChanged:(id)sender
35 NSURL *newURL = [uiPathControl URL];
38 -(IBAction)doInit:(id)sender
40 engine = new DNEngine([[[uiPathControl URL]path] UTF8String]);
43 -(IBAction)doStart:(id)sender
45 if (engine && engine->isValid())
47 engine->setTickIntervalSec(1.0);
48 engine->startHTTPServer(9080);
52 -(IBAction)doStop:(id)sender