Strugging with Commands
renggli at iam.unibe.ch
Fri Nov 30 08:51:34 MET 2007
> I am struggling to write a command which edits a model, rather than
> 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.
> The problem that I am having is that the standard onAnswer: for
> 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 ...
More information about the smallwiki