Open Ducasse opened 6 years ago
You are right. Problem that after cleanup which we did I still don't know the right way and what right way we want achieve. I see in Pharo7 there is Object>>iconNamed:. Is it our goal?
There are two places with #icons:
I did not put Object>>iconNamed: my idea was to identify the roots where such method should be put and to turn it into a variable (all the logic behind Smalltalk ui is a big shit). Now duplicating Smalltalk ui icons everywhere is not a solution because we cannot think anymore about the solution.
Now I do not know how you count because senders of ui shows me a lot more sender in classes starting with Cly
I count senders of #icons. And there are 6 places with "Smalltalk ui iconNamed:". Mostly they are icons for commands.
Other users of #ui are theme related methods
I did not put Object>>iconNamed: my idea was to identify the roots where such method should be put and to turn it into a variable (all the logic behind Smalltalk ui is a big shit).
So we still didn't decide what is the right way. And it is a reason why we have all these users
So let us do nothing like that we will be sure that nothing will happen.
Stef, I did not say "let's do nothing". I say I don't know what to use instead. I assume "self iconNamed:" everywhere is not what you want. Then how to change it?
My solution is
May be we should keep one call in such root May be we should use an instance variable (what about updating).
I do not know. But we should really remove Smalltalk ui. That I'm sure.
Either use the one in Object or define one in the superclass and use self iconNamed:
I found that a bit insulting that I spent my time cleaning this from the system and that there are still 200 senders! And especially in new framework.
When do we behave like pro?