You can use this framework if you want your OS X app to interact directly with V8 and/or Node.js.
CoreNode is really a thin wrapper around V8. You spawn a dedicated Node thread which starts V8 and initializes Node.js. You are then able to dispatch method calls asynchronously to this thread.
This is a fork of the Node.js plugin system inside of Kod. Numerous bugs have been fixed and there is added support for JS closures which are now captured and able to be invoked from within Objective-C land.
- Drag the Xcode project into your project.
- Open the 'Build Phases' tab of your project and add the CoreNode framework as a direct dependancy of your project.
- Add the CoreNode framework under 'Link Binary With Libraries'.
- Add a new 'Copy Files' Build Phase.
- Change the destination of the 'Copy Files' build phase to 'Frameworks' and add the CoreNode framework to this build phase.
- Switch to the 'Build Settings' tab and edit the 'Header Search Paths' setting for your application target. Add the directory 'CoreNode/lib/node' relative to your application directory.
You can view the project settings for the Example project if you run into problems.