<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body><div>Hi Rippel,</div><div><br></div><div>I wrote an example application under Windows that uses the JavaScriptCore API to execute arbitrary JavaScript code. (See <span style="font-family: '.Helvetica NeueUI'; font-size: 15px; line-height: 19px; white-space: nowrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><a href="https://github.com/bfulgham/CallJS">https://github.com/bfulgham/CallJS</a>)</span></div><div><br></div><div>It's really not very complicated, and is also illustrated in the Inspector code in the WebKit archive. E-mail if you have any problems.</div><div><br></div><div>-Brent<br><br>Sent from my iPad</div><div><br>On Jun 22, 2012, at 9:41 AM, rippel tippel <<a href="mailto:rippeltippel@gmail.com">rippeltippel@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Hi,</span><br><span></span><br><span>I need to expose some C++ classes/methods to JavaScript using</span><br><span>JavaScriptCore, so that they can be instantiated/called by a</span><br><span>JavaScript application.</span><br><span></span><br><span>I found plenty of documentation and examples regarding v8 and Node.js,</span><br><span>but not much about JavaScriptCore API (apart from some old or</span><br><span>incomplete docs, e.g. [1], [2], and [3]).</span><br><span></span><br><span>Can anyone point me to some documentation and/or examples, and/or</span><br><span>outline the basic steps for doing it?m</span><br><span></span><br><span>Kind regards,</span><br><span>Rippel</span><br><span></span><br><span>[1] <a href="http://article.gmane.org/gmane.os.opendarwin.webkit.user/1067/match=javascriptcore">http://article.gmane.org/gmane.os.opendarwin.webkit.user/1067/match=javascriptcore</a></span><br><span>[2] <a href="http://developer.apple.com/library/mac/#documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/">http://developer.apple.com/library/mac/#documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/</a></span><br><span>[3] <a href="http://developer.apple.com/library/mac/#samplecode/JSPong/Introduction/Intro.html">http://developer.apple.com/library/mac/#samplecode/JSPong/Introduction/Intro.html</a></span><br><span>_______________________________________________</span><br><span>webkit-help mailing list</span><br><span><a href="mailto:webkit-help@lists.webkit.org">webkit-help@lists.webkit.org</a></span><br><span><a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-help">http://lists.webkit.org/mailman/listinfo.cgi/webkit-help</a></span><br></div></blockquote></body></html>