I generate a view as follow
view: bd
self call: (bd asComponent readonly: true ; addSwitch ;
yourself)
Now I would like to know how I could get a close button too that
would invoke an answer method?
Unfortunately the MASwitchDecoration doesn't allow custom buttons.
You probably need to subclass it to get the desired functionality.
Question 2.
I have a description....
and I wanted to know how I can specify a default value.
descriptionEditor
^ (MASingleOptionDescription selector: #editor label: 'Publisher'
priority: 400)
options: self editors;
beSorted;
yourself
In fact I would like to select the value of the editor iv
so I tried default: #editor
Then the symbol #editor is the default. As default you have to
directly specify the object you want to use, e.g.
default: self editors first
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch