For fun I put the following trace in

sourceCodeFrom: aTextMorph
    Transcript show: '.'.
    ^ self sourceCode

And in general this method is invoked three times instead of one :)



    Before asking we read all the examples and I saw that selector: is
    used to communicate and update the code pane.

    (UIManager default newAutoAcceptTextEntryFor: self
                get: #selector
                set: #selector:
                class: String
                getEnabled: #haveClassName
                help: 'Enter a selector' translated
                entryCompletion: entryCompletion)
                    acceptOnCR: false;
                    ghostText: 'Selector';
                    withDropListButton;


I think this is only for the drop down list.

What I meant is that I could use set: and pass the selector to be invoked by the dropdown when the drop down is selected. And it will notify self with the selector: selector. So we could sepcify any selector (ie I can register to the drop box and say call me once you are set).


In RubMethodEditingExample>>#selector:
it calls the update explicit
 self updateCodeWith:  (cls sourceCodeAt: selector)
and updateCodeWith: sets the text on the text model.



    Now my problem (and may be there is not solution) is how can I
    connect from a pluggableListMorph to a RubScrollText
    when the list does not generate announcement.
    This is why I tried to pass via dependents or something like that.

    I will try to generate announcements but this is a lot more work
    and I do not know if it will work.

    Stef



Reply via email to