I am struggling to write a command which edits a
model, rather than
the
command instance itself. I am trying to do it this way since the model
class and description may change whereas the command class does not.
Why do you use a command then? As described in the GOF book, this
design pattern is used to encapsulate an action and its parameters.
[code]
The problem that I am having is that the standard onAnswer: for
commands
is implemented by the containing Contents Widget somewhere else and I
cant see any way of overriding it.
I neither understand your code nor the sentence above ;-)
Is the problem that Seaside doesn't allow to have multiple onAnswer:
handlers? I guess this is something that should be fixed ...
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch