customization

Pierre Lorenzon <[email protected]> Tue, 26 Jun 2007 15:27:03 +0200 (CEST)
Newsgroups gmane.emacs.eieio
Message-ID <[email protected]>
Hi 

I am very interested in using the customizing facilities
provided by the eieio package. But !

I defined a class whose only slot is a list which will be
filled with objects. So the custom type I found the most
appropriated was (repeat object).

ex : (defclass test () ((list :custom (repeat object))))

Objects are very simple objects in order to test the
mechanism. When an object is created and customized with
eieio-customize-object everything goes well : it displays
correctly as would display any editable-list. It means with the
ins and del button for each itm. But when trying to click the
ins button an error occurs ! 

"No create method specified"

This error comes from the  eieio-object-value-create
method. Indeed this method tries to retrieve  :objecttype) or
or :objectcreatefcn attribute from the newly created child
widget. But method widget-editable-list-entry-create in the
wid-edit library does not set any of this attributes. 

So what does this mean ? Can't we use the repat type without
any slight modification ? Do we have to define a slightly
modified type to handle this creation problem ?

Once more, if there is something to implement I can try to do
it but I only want to be sure that it is not something that I
misunderstood !

Regards

Pierre


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/