On 10/16/07, Lukas Renggli <renggli(a)iam.unibe.ch> wrote:
Yes, that's the simplest possibility.
I saw some stuff on Ramon's blog that answered my question (I must
say, I knew this blog was good, but I didn't realize how much great
info was there).
Yes, if you have descriptions for your constructor
arguments you can
use the MAAdaptiveModel to let the user enter the constructor data
and then you feed these values into the constructor itself. I guess
there is no easier way.
Well, that's not bad. I'm just glad it's doable at all. From taking
a quick look, it seems I can just make a CustomizedConstructorMemento
to do this job. I can change the model to be the *class* instead of
an instance of the class, and change the push method to first
construct the class, then apply the remaining values. Hrm, actually I
guess model will need to be the class on first use, and an instance of
the class after data is committed to it once.
But on an unrelated note, while exploring my options with accessors I
think I may have uncovered a bug. I was using autoselector, which
made instance variables in my class and accessors for them (handy when
you need it!). I switched to selectorAccessor to stop this behavior
and now I get the following:
MessageNotUnderstood: Set>>copyFrom:to:
Debug Proceed Full Stack
Possible Causes
* you sent a message this type of object doesn't understand
Stack Trace
1.
thisContext
Set(Object)>>doesNotUnderstand: #copyFrom:to:
self
a Set()
aMessage
copyFrom: 1 to: 0
2.
thisContext
MAReport>>visible
self
a MAReport
3.
thisContext
MAReport>>renderTableBodyOn:
self
a MAReport
html
a WARenderCanvas
row
nil
index
nil
col
nil
4.
thisContext
[] in MAReport>>renderTableOn: {[self showBody ifTrue: [self
renderTableBodyOn: html]]}
self
a MAReport
html
a WARenderCanvas
5.
thisContext
BlockContext>>renderOn:
self
[] in MAReport>>renderTableOn: {[self showBody ifTrue: [self
renderTableBodyOn: html]]}
aRenderer
a WARenderCanvas
I'm still investigating the cause of this, but I thought I would post
it real fast in case someone knows off the top of their head.
Thanks,
Jason