[Openmcl-devel] Interactive cocoa programming

Alexander Repenning ralex at cs.colorado.edu
Sat Dec 4 07:55:11 PST 2010

Try XMLisp (eXtreme Media Lisp)  http://code.google.com/p/xmlisp/    Here is the complete Lisp part of the XMLisp version of Currency Exchange: 

(defmethod CONVERT-CURRENCY-ACTION ((w application-window) (Button button))
  (setf (value (view-named w "amount"))
        (* (value (view-named w "rate"))
           (value (view-named w "dollars")))))

Of course you need to define the layout (WARNING: file contains extremely dangerous ideas including the ability of Lisp to read XML expressions):



On Dec 2, 2010, at 1:30 PM, Christian Lynbech wrote:

> I am trying to get started with cocoa programming in ccl and I think I
> have understood the currency converter demo but I am unsure how to get
> back some sort of REPL access such that I my interact with the
> application.
> Taking the currency converter demo, one approach would be to make it open a
> listener window as well as the main application window; that would allow
> me to poke around in the running application.
> Alternatively, I could perhaps start out from an interactive session,
> for instance via slime. If I (require "COCOA"), I get a new listener
> window but how can I then load my NIB and initialize the cocoa part?
> I guess I could even preload swank, start a swank listener as part of
> application initialization and then subsequently connect from
> emacs/slime to the running application.
> What's a good approach?
> ------------------------+-----------------------------------------------------
> Christian Lynbech       | christian #\@ defun #\. dk
> ------------------------+-----------------------------------------------------
> Hit the philistines three times over the head with the Elisp reference manual.
>                                      - petonic at hal.com (Michael A. Petonic)
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

Prof. Alexander Repenning

University of Colorado
Computer Science Department
Boulder, CO 80309-430

vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf

More information about the Openmcl-devel mailing list