Hi,
The first problem I see is that you look for the change of port in the
browser, not in the text presentation.
Try by adding onChangeOfPort: inside the text presentation creation block.
Here is a full snippet for that:
http://ws.stfx.eu/GDZ3ZIZ0GMTM
Cheers,
Doru
On Thu, Dec 4, 2014 at 12:16 AM, Offray Vladimir Luna Cárdenas <
offray(a)riseup.net> wrote:
Hi,
Despite of my advances studying Glamorous Toolkit and making some
advances on "apps" and interfaces, I really don't understand well the
concept of ports and auto-update of values. So I started with a small
excercise from the transcript example as proposed in the GT blog[1]. Its
working as expected, so try to extend the example with a code that shows my
incomplete understanding at [2]. My idea was to create a two panels browser
showing an array. Left panel show a list, and right one was a text with the
selected value of the list. When the values at the right were updated the
list at the left was updated also. Because this was not working I create a
Transcript trying to show if changes on the right where captured. I have
seen the three inter-dependant panes example, but still I don't get it
right. So my questions are:
[1]
http://ws.stfx.eu/L277ESMZYIF3
[2]
http://ws.stfx.eu/1FOA0OWJ8PWA
a) How can I send the changes in values from the right panel to the one
of the left?
Thanks,
Offray
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
The real problems might be,
- how to access the list, that is used by the left presentation and
- how to access the selected *index* of the list, so he can do a at:put: on
that data
btw, changing the text of the text pane *and* accepting the text on the
text pane (cmd+s) both trigger a
change-event. Maybe it would be better to distinguish between both actions.
nicolai