>>> 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.
>
> It does encapsulate an action. The problem being that commands as they
> are can only act upon themselves.
Why do you think that? All commands I know act on other objects,
mostly on structures in Pier.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki