Hi, GLMRubScrolledTextBrick is a wrapper around RubScrollTextMorph. I see that it is a common practice in Pharo to implement decorator / wrapper pattern using doesNotUnderstand:. Reference: - AthensWrappedWorldDisplay - DictionaryValueHolder - MorphicTreeAdapter - RubEditingArea - RubParagraphDecorator - RTShapeBuilder - RTShowLabel Is there a better way to implement a decorator or a wrapper around the object with many api methods rather then doesNotUnderstand:? Cheers, Alex On 9 December 2017 at 17:45, Henrik-Nergaard <draagren@outlook.com> wrote:
GLMRubScrolledTextBrick>>withoutMargins uses self margins: but I cannot find the method. This is because it is implemented in RubScrollTextMorph. GLMRubScrolledTextBrick implements #doesNotUnderstand: to send it to the rubric object. see: https://pharo.fogbugz.com/f/cases/17888/GLMRubScrolledTextBr ick-relies-on-dnu-delegation
Best regards, Henrik
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html