[Q] Updating a SystemWindow wrapping a StringHolder
Ned Konz
ned at bike-nomad.com
Thu Feb 7 16:42:18 UTC 2002
On Thursday 07 February 2002 01:25 am, Hannes Hirzel wrote:
> Where is the polymorphism here?
>
> Or is using a StringHolder not a good example?
> But it is the base class of 39 other classes?
This is a sign that it might not do much by itself. There is no guarantee
that a specific class will have all the behavior you want.
You could do this:
t _ TextMorph new
string: 'this is my test' fontName: 'ComicPlain' size: 18.
t openInWindow.
t textColor: Color black.
t contents: 'fred'
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|