Re: Embedding a scripting language into Cocoa app
Re: Embedding a scripting language into Cocoa app
- Subject: Re: Embedding a scripting language into Cocoa app
- From: John Anderson <email@hidden>
- Date: Thu, 3 Oct 2002 09:52:43 -0700
Have you looked at Chimera? It's open-source and integrates a
JavaScript engine. Might give you some clues.
-j.
On Thursday, October 3, 2002, at 08:53 AM, Brad Werth wrote:
I am creating an app in Cocoa that I want to make fairly extensible.
This app (a game) will have a number of fairly arbitrary code pieces
to manipulate some specific objects in my game world. I want to avoid
hard-coding these pieces as Objective C, since I want the user to be
able to add additional behaviors later -- confined to manipulating
those specific objects.
Ideally, I would like to use Javascript as a scripting language to
handle this problem. In a previous project which was written in Java,
I have successfully integrated the Rhino Javascript engine and I liked
the way it worked. I took a stab at compiling Mozilla's spidermonkey
Javascript engine, but I had a lot of problems. It looks like the
makefiles haven't been updated for OS X since developer preview 3 (the
mac build instructions say use Codewarrior 3.x). By tweaking the
config.mk file and the makefile, I was able to get pretty far into the
build process, but it still fails.
So has anyone successfully integrated the spidermonkey Javascript
engine into a Cocoa project? I would love to see some sample code.
Brad Werth
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.