Lisp HUG Maillist Archive

Subclassing capi:choice

I’m subclassing capi:choice, and everything is going quite well. The only issue I’m having is that none of the choice callbacks are firing (e.g. :selection-callback). If I have to fire these myself, that’s fine, but I don’t see a common way of firing them where :callback-type is taken into account properly.

Does anyone know how to do this?

Thanks! And Happy Holidays + New Year!

Jeff M.

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Subclassing capi:choice

Yeah, I've had the same problem for a long time, and I think I also posted this question on lisp-hug. Unfortunately, nothing useful have turned up so far.

Instead, I've been working around the problem by re-implementing the most common callback-types, :interface, :interface-data etc. I placed them in a generic function called call-callback, which I call from my subclasses.. This has worked well so far, but it would indeed be much nicer to be able to use the existing CAPI callback functionality!

Erik





24 dec 2014 kl. 17:51 skrev Jeffrey Massung:

> 
> I’m subclassing capi:choice, and everything is going quite well. The only issue I’m having is that none of the choice callbacks are firing (e.g. :selection-callback). If I have to fire these myself, that’s fine, but I don’t see a common way of firing them where :callback-type is taken into account properly.
> 
> Does anyone know how to do this?
> 
> Thanks! And Happy Holidays + New Year!
> 
> Jeff M.
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
> 


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:33 UTC