Last Revision:
Version 1.1, 2011-08-03
Project updated for Xcode 4.
Build Requirements:
Xcode 3.2, Mac OS X 10.6 Snow Leopard or later.
Runtime Requirements:
Mac OS X 10.6 Snow Leopard or later.

JavaScriptCore is a new system framework available in Mac OS X 10.5 that allows applications to run JavaScripts. This sample shows one way to use JavaScriptCore for providing user configurable features in a Cocoa application. Here, a number of JavaScript objects are defined that represent various parts of the application and the application's controller is really just a thin shell that calls JavaScripts that decide how the application will operate in response to Interface Builder action method calls and WebKit delegate callbacks. The JavaScripts themselves control the application through the objects that represent different parts of the application.