2010/1/12 Ralph Boland <rpboland@gmail.com>:
In my (Squeak) project I modified PluggableTextMorph >> getText to be as follows:
getText    "Retrieve the current model text"
   | newText |    getTextSelector isNil ifTrue: [^Text new].    newText := (getTextSelector numArgs = 1)        ifTrue: [model perform: getTextSelector with: self]        ifFalse: [model perform: getTextSelector].    newText ifNil: [^Text new].    ^newText shallowCopy
note about #shallowCopy at the end. When i was dealing with this stuff, i found that text copied multiple times once it finally gets into editor. This , IMO wrong. Model , not editor should care about preserving a backup copy. Editor should feel free to modify an instance of Text, prodived by model. -- Best regards, Igor Stasenko AKA sig.