links to this page:
TextMorph
Swiki Page List
TextMorph examples
aString asText
Last updated at 11:52 am UTC on 19 July 2022
Instances of class
String
have no attributes associated with them.
With #asText you get a
Text
instance to which
TextAttribute
s may be added.
aText := aString asText
Then with
aText asMorph
you may get a
TextMorph
.
Thus
aString asText asMorph
gives a TextMorph instance.
Whereas a
aString asMorph
gives a
StringMorph
instance.
Thus both class String and class Text implement #asMorph but with different resulting morphs.
Cf:
Selectors of String and Text