The first beta version of JSKit, an open sourced (MIT license) framework for embedding JavaScript inside Cocoa applications is now available at <http://projects.gandreas.com/jskit/index.html>.

JSKit provides Objective-C wrappers around the lower level JavaScriptCore (available on 10.5 and 10.4 with Safari 3.0) and provides transparent two way bridging technologies, allowing you to call JavaScript objects from Objective-C and to write Objective-C that can be called from JavaScript (including both simple functions as well as full type-constructors). JSKit is designed as a layered system with "opt-in" capabilities, making it well suited to using it as a macro/embedding/scripting solution for a Cocoa app, with explicit "exposing" of your Cocoa code code to JavaScript world (preventing malicious JavaScript from subverting your app). Additional layers can be added to expose generic NSObject classes, and later versions will include the ability to write entire Cocoa apps in JavaScript.

JSKit also includes a simple command line interactive interpreter (for making JavaScript shell scripts), as well as utility classes for simple JavaScript savvy editors, and a fun little "turtle graphics" sample app (demonstrates how to use JavaScript as a scripting extension language in your app).

JSKit can be built and used by XCode 2.4 running on Tiger (with Safari 3.0 installed), as well as 2.5 and 3.0 running on Leopard.

Glenn Andreas                      [EMAIL PROTECTED]
 <http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to