How do I trace through implementors in Pharo?
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? Tim
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
Tim, If there is a colon in one of the arguments (like in a Symbol) then the selector parser gets confused ... Dale 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
Le 10/08/2014 23:33, Tim Mackinnon a écrit :
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). Try smart suggestions, available through ctrl+t ?
This is also something I use a lot when I browse code: jump from implementors to implementors... Thierry
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?
Tim
participants (5)
-
Ben Coman -
Dale Henrichs -
phil@highoctane.be -
Thierry Goubier -
Tim Mackinnon