[R-SIG-Mac]bridging to Cocoa from other languages
Jan de Leeuw
deleeuw@stat.ucla.edu
Tue, 12 Nov 2002 23:39:49 -0800
This is on r-sig-mac, because I think it would be wonderful to have
an RObjCBridge.
==========================================================
Normally, you access Cocoa (the Foundation and Appkit frameworks,
formerly NextStep or OpenStep or GNUStep) from
ProjectBuilder, using the Objective C language. But by now there are
many scripting languages which can be used to access these frameworks,
and thus to rapidly build Cocoa applications with Aqua user interfaces.
There are bridges for Perl, Ruby, Lua, Smalltalk, Lisp, Basic, F-script,
AppleScript, Java, Python
See the links at http://www.fscript.org/links.htm
The F-script site is an interesting example, because it is so well
documented. F-script is a Smalltalk-like scripting language, and
the site gives you tools to access Cocoa from F-script as well as
F-script from Cocoa (you can easily build an F-script interpreter
into any Cocoa application at compile time, in fact there is a
tool to add an F-script interpreter to arbitrary Cocoa applications
at run time -- which allows you to look into the internals of the
Mail or Terminal application, and to make them scriptable at
run time).
All OS X developer tool installations come with the Java Bridge
and with the Perl Bridge (say "man PerlObjCBridge").
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical
Software
US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
------------------------------------------------------------------------
-------------------------
No matter where you go, there you are. --- Buckaroo Banzai
http://gifi.stat.ucla.edu/sounds/nomatter.au
------------------------------------------------------------------------
-------------------------