[UI] how to find button action target?

Damien Cassou damien.cassou at gmail.com
Thu Apr 10 05:48:33 UTC 2008


Do know what is being executed:

- use the third mouse button to display the allows of the dialog
- press this button again until the button is selected (you will see
PluggableButtonMorphPlus at the bottom line of the halos)
- press the 'wrench' button on the right (named 'debug')
- select 'explore morph'
- click on the '+' sign to unfold
- the 'model' property tells you where the message will be sent (an
instance of TextEntryDialogWindow)
- the 'actionSelector' property tells you that the message is #ok.

So, #ok will be sent to an instance of TextEntryDialogWindow. You can
now browse TextEntryDialogWindow, right click on the class, open '
Protocol browser'. Select '--all--', in the method list select 'ok'.
You will see that the #ok method is implemented in the DialogWindow
class a superclass of TextEntryDialogWindow.

Have a nice day

On Wed, Apr 9, 2008 at 9:11 PM, Ken G. Brown <kbrown at mac.com> wrote:
> Hi, I have a question about where to find what actually gets executed when you click a button.
>  sq3.10-7159dev08.04.1 with UI Enhancements
>
>  eg. Open a simple ChangeSorter, opt-click to make a new ChangeSet, enter the name.  What gets done when you click ok?
>  I've dragged a copy of the button off and explored and inspected but cannot find what the button action actually is.
>  I seem to be missing some key understanding on how the button in this case works.
>
>  My goal, and reason for looking into this particular thing, is to programmatically create a new ChangeSet in an Installer script, so answering how to do that would help too.
>
>  Thx,
>  Ken G. Brown
>  _______________________________________________
>  UI mailing list
>  UI at lists.squeakfoundation.org
>  http://lists.squeakfoundation.org/mailman/listinfo/ui
>



-- 
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)


More information about the UI mailing list