• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Embedding a scripting language into Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Embedding a scripting language into Cocoa app


  • Subject: Embedding a scripting language into Cocoa app
  • From: Brad Werth <email@hidden>
  • Date: Thu, 3 Oct 2002 08:53:27 -0700

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.

  • Follow-Ups:
    • Re: Embedding a scripting language into Cocoa app
      • From: John Anderson <email@hidden>
    • Re: Embedding a scripting language into Cocoa app
      • From: "Sven A. Schmidt" <email@hidden>
  • Prev by Date: Re: Insert text at end of Textview
  • Next by Date: Re: Insert text at end of Textview
  • Previous by thread: Re: Insert text at end of Textview
  • Next by thread: Re: Embedding a scripting language into Cocoa app
  • Index(es):
    • Date
    • Thread