public
Description: Miscellaneous projects found on tlrobinson.net
Homepage: http://tlrobinson.net
Clone URL: git://github.com/tlrobinson/tlrobinson.git
 
tlrobinson (author)
Sun Nov 09 01:56:09 -0800 2008
commit  b65dbdc0884687054fe48d31252456ac7c444e1e
tree    facb83aeab5bedcce086d6da57742c9e6f4ff327
parent  ca41231532b198ac02bc73ec27d091749cb5b15b
tlrobinson / jscocoa
name age message
..
file README Fri Oct 10 02:38:03 -0700 2008 jscocoa command line interface to JSCocoa [tlrobinson]
file jscocoa.m Fri Oct 10 02:38:03 -0700 2008 jscocoa command line interface to JSCocoa [tlrobinson]
file jscore-bridge.m Fri Oct 10 02:38:03 -0700 2008 jscocoa command line interface to JSCocoa [tlrobinson]
jscocoa/README
"jscocoa" is a simple command line interface to JSCocoa:

- http://inexdo.com/JSCocoa
- http://code.google.com/p/jscocoa/

1) Create a new command line tool project in Xcode
2) Replace the main file with jscocoa.m

Perform the steps listed here: http://code.google.com/p/jscocoa/wiki/QuickStart

3) Add JavascriptCore.framework to frameworks
4) In 'Build' project settings, add -lffi to 'Other linker flags'
5) Copy (or reference) all the files from the JSCocoa folder in your project.

Only the following are really necessary:

  JSCocoaPrivateObject.m
  JSCocoaController.h
  JSCocoaController.m
  JSCocoaFFIArgument.h
  JSCocoaFFIArgument.m
  JSCocoaFFIClosure.h
  JSCocoaFFIClosure.m
  JSCocoaHelper.h
  JSCocoaHelper.m
  JSCocoaPrivateObject.h
  BridgeSupportController.m
  BridgeSupportController.h
  

jscore-bridge.m is very incomplete and obsoleted by JSCocoa.