[squeak-dev] The Trunk: Morphic-mt.1659.mcz
K K Subbu
kksubbu.ml at gmail.com
Tue May 19 18:09:40 UTC 2020
On 19/05/20 12:32 pm, commits at source.squeak.org wrote:
> + ifTrue: [ToolIcons iconNamed: self object class toolIcon]
Instead of adding a toolIcon method to every class, the code can check
if ToolIcons already contains a icon under the class name (in lowercase)
ToolIcons iconNamed: self object class .. ifAbsent: [ ... ]
This will avoid trivial methods like:
Foo class>>toolIcon ^#foo
Regards .. Subbu
More information about the Squeak-dev
mailing list
|