Fwd: [Openmcl-devel] How to make lisp slots in an objc class
beque at telia.com
Wed Mar 17 09:46:03 UTC 2004
I meant to send this to the list, but used the wrong button
Begin forwarded message:
> From: Anders Conradi <beque at telia.com>
> Date: tis mar 16, 2004 23:58:03 Europe/Stockholm
> To: Randall Beer <beer at eecs.cwru.edu>
> Subject: Re: [Openmcl-devel] How to make lisp slots in an objc class
> On tisdag, mar 16, 2004, at 15:02 Europe/Stockholm, Randall Beer wrote:
>>> Thanks! That gets the class past the compiler. When I try to
>>> initialize it it only works when I pass initargs to make-instance
>>> (even though I have added initforms). How can I instantiate objects
>>> without passing initargs? I really want the object to be
>>> instantiated from a .nib-file.
>> The fix for initializing Lisp slots in OBJC-CLASSes from :INITFORM is
>> in CVS and the OBJC-CLOS.LISP file is attached.
> Thank you! It seems as if I should start following CVS instead of
> relying on version 14.1-p1 that I have now (slightly hacked with
> generous bug-fixes from this list).
> Just one more question. (Yeah, right, like all pieces will fall into
> place if I only get the answer to this question)
> Now I have conditions that are signaled on one side of cocoa and
> caught on the other. The problem is that I loose valuable state. I
> only get messages about "#<BOGUS object @ #x42AFE7AE> has no slots"
> and a backtrace that originates from CHECK-NS-EXCEPTION. I would like
> to get the backtrace on the side of cocoa that signaled the error.
> Is there any good way of entering the debugger instead of returning
> to cocoa when a method implemented in lisp signals a condition? I
> haven't gotten around to learning the lisp condition model so I am not
> quite sure how to approach this.
> OK, I just realised that I have one more question. Is there anything I
> can do to help? I know my lisp "skills" are severally lacking, and I
> don't have that much time, but perhaps there is something simple I
> could do. I have already written a simple temperature converter in
> lisp with a cocoa interface. That might be nice as an example for
> other newbies to this whole lisp and cocoa thing.
More information about the Openmcl-devel