Tim,
If there is a colon in one of the arguments (like in a Symbol) then the selector parser gets confused ...
Dale
Open a System Browser on��
�� �� TEasilyThemed>>alert: aStringOrText title: aString
��������^self
����������������alert: aStringOrText
����������������title: aString
����������������configure: [:d | ]
Select the whole of the last three lines and fromt he selection context menu choose 'Extended search... > Implementors'.
Nothing happens.
Now make the action but exclude the block from the selection.����
Up comes a list of three implementors.
This is non-obvious and confusing behaviour for new users. Blocks should be excluded from the search.
On Sun, Aug 10, 2014 at 3:13 PM, phil@highoctane.be <phil@highoctane.be> wrote:
On Sun, Aug 10, 2014 at 11:33 PM, Tim Mackinnon <tim@testit.works> wrote:
As I relearn/learn how to use Pharo, I���m struck by some of the excellent changes and confounded by some of the simple things that boggle me.
So, I wanted to follow a path through some message sends - the use of #alert:title: in UIManager specifically.
So I browser UIManager, find the method (its subclassResponsiblity) - so I find other implementers (cmd+b, cmd+m) - (I���m really liking that there are more keystrokes in newer Pharo���s but not liking that the same operations don���t have the same bindings in different windows - e.g. in the debugger - its not this!!)
Anyway - this gives me an implementors window on TEasilyThemed - great!
In the source, there is another msg send - ^self alert:title:configure:
So I want to follow its implementers - I hi light the source and cmd+b,cmd+m does nothing? hmmm - right click there and the context menu doesn���t have an obvious way - until I spot (Extended Search���) [which by the way should be shown as a submenu - like it does in the SystemBrowser).
In this menu there is ���implementers of it��� - however this does nothing? (this is in both Pharo 3.0 and Pharo 4.0)
So how do you trace through method calls? Am I doing something wrong - or has this been broken for a long time?
A workspace expression and Debug It?
Now, beware of how you select the code chunk, if you do not select properly, it will not work.I tried in a fresh 3.0 and highlighting in the code pane and asking for implementors does work from the extended search menu.
I also use spotlight often.
Phil��
Tim