Current status of the project
As of right now, c8 is a glorified version of the shell application is compiled from v8's source. It introduces a new global object (
objc) that contains a single function (
var NSDictionary = objc.class("NSDictionary"); var dict = NSDictionary.dictionaryWithObject_ForKeys_('demo-object', 'demo-key');
Note that calling an Objective-C method follows the naming convention that Apple outlined for Webkit/Dashboard plug-ins.
Dependencies and usage
You must download and compile v8. Once you have built v8, you may need to re-add
v8.h to the Xcode project. Once both of these items are correctly noticed by Xcode and libv8.a is properly linked, you should be able to Build & Run the command line application. This application will run a modified v8 shell on
test.js, displaying some information in the Console.