On 04 Feb 2016, at 17:38, Stephan Eggermont <stephan@stack.nl> wrote:
On 04-02-16 17:00, Esteban Lorenzano wrote:
Smalltalk ui icons iconNamed: #protocolExtension.
Still ugly, but Iâm not happy with the idea of a selector-per-iconâ¦
Why do you see that as a problem? For me the problem is more the trainwreck.
because then you have a fixed number of icons and you cannot dynamically load more. You can create methods ad-hoc, but I do not like this in general⦠and you do not have any gain between doing: Smalltalk ui icons iconNamed: #something and doing: Smalltalk ui icons somethingIcon. ThemeIcons>>#somethingIcon ^ self iconNamed: #something So yes⦠adding a selector-per-icon is not recommended because it does not scales. Esteban
Stephan