Hi, I'm trying to define this transmission: browser transmit to: #one port: #selection; from: #two; transformed: [:x | x-2 ].
The problem is that #one and #two are not defined in the same browser. Specifically, #two is defined into a browser that is added to the browser in which #one is defined usign something like: a custom: MyBrowser browser.
How can I define the transmission? Thanks in advance, Cheers, Santiago
Hi,
Transmissions are always sent between ports belonging to panes that are either inside the browser or to the outside pane that surounds the current browser.
So, you have to send from the inner browser to an outside port, and then create another transmission in the surrounding browser.
The simplest way to figure out what you need to define is to draw your browser. This is why we have this notation: http://www.themoosebook.org/book/internals/glamour/sketching
For transmissions, please read this: http://www.themoosebook.org/book/internals/glamour/transmissions http://www.themoosebook.org/book/internals/glamour/browsers/composition
Cheers, Doru
On 17 Jul 2012, at 22:30, Santiago Vidal wrote:
Hi, I'm trying to define this transmission: browser transmit to: #one port: #selection; from: #two; transformed: [:x | x-2 ].
The problem is that #one and #two are not defined in the same browser. Specifically, #two is defined into a browser that is added to the browser in which #one is defined usign something like: a custom: MyBrowser browser.
How can I define the transmission? Thanks in advance, Cheers, Santiago
-- Santiago Vidal _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Value is always contextual."
Oh! I understand now. Thanks for the explanation!
Cheers, Santiago
2012/7/17 Tudor Girba tudor@tudorgirba.com
Hi,
Transmissions are always sent between ports belonging to panes that are either inside the browser or to the outside pane that surounds the current browser.
So, you have to send from the inner browser to an outside port, and then create another transmission in the surrounding browser.
The simplest way to figure out what you need to define is to draw your browser. This is why we have this notation: http://www.themoosebook.org/book/internals/glamour/sketching
For transmissions, please read this: http://www.themoosebook.org/book/internals/glamour/transmissions http://www.themoosebook.org/book/internals/glamour/browsers/composition
Cheers, Doru
On 17 Jul 2012, at 22:30, Santiago Vidal wrote:
Hi, I'm trying to define this transmission: browser transmit to: #one port: #selection; from: #two; transformed: [:x
| x-2 ].
The problem is that #one and #two are not defined in the same browser.
Specifically, #two is defined into a browser that is added to the browser in which #one is defined usign something like:
a custom: MyBrowser browser.
How can I define the transmission? Thanks in advance, Cheers, Santiago
-- Santiago Vidal _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Value is always contextual."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev