> The description of the objects in class B needs to be instance
> based. All the objects in one collection have the same description,
> however class B is not able to provide a description.
>
You can override #description on the instance side to either build
your descriptions on the fly or to modify the ones returned by the
class. For example:
B>>description
^ super description collect: [ :each |
(each isKindOf: MAToManyDescription)
ifTrue: [ each copy classes: self dynamicClasses ]
ifFalse: [ each ] ]
You find many other possible solutions in the mailing-list archive and
some additional information in the FAQ:
http://www.lukas-renggli.ch/smalltalk/magritte/faqLukas
--
Lukas Renggli
http://www.lukas-renggli.ch_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki