[Openmcl-devel] Using the Cocoa bridge in 0.14

Randall Beer beer at eecs.cwru.edu
Sun Sep 21 22:32:24 UTC 2003


> How do I write a define-objc-method for a method with no  args? I have 
> only managed to get it to work by specifying the selector as a string. 
> I tried (define-objc-method ((:void 'reshape) lisp-opengl-view) ...) 
> where lisp-opengl-view is a subclass of ns-opengl-view. This resulted 
> in
>
> > Error in process listener(1): Car of ((:VOID 'RESHAPE) 
> NS-OPENGL-VIEW) is not a function name or lambda-expression.
> > While executing: CCL::CHEAP-EVAL-IN-ENVIRONMENT
> > Type :POP to abort.
> Type :? for other options.
>
> I have clearly misunderstood how to do it. Could someone tell me how I 
> am supposed to do it. Now I do (define-objc-method ("reshape" 
> ns-opengl-view) (:void) ...), but I prefer to specify the selector and 
> type in the symbolic way if possible.

I think that you want to say (define-objc-method ((:void reshape) 
ns-opengl-view) . . .)


_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list