Hi Benjamin,
Great, it looks like you are getting into the details :).
Before going forward, please read the short design description: http://www.themoosebook.org/book/internals/glamour/architecture
To get an idea of how a browser looks like inside, we also use a special notation: http://www.themoosebook.org/book/internals/glamour/sketching
Transmissions connect ports of panes.
When you have #one->#selectionPath, you are basically specifying that we refer to the #selectionPath port from the #one port. This is a shortcut that will be deprecated in the future. You will have to explicitly say #to:port:.
When you have "transmit to: #one", you transmit to the default input port of a pane which is named #entity.
When you have "transmit from: #one", you transmit to the default output port of a pane which is named #selection.
The ports can be named in any way you want. You can think of them as instance variables of a pane. It is then up to you to connect the ports correctly. Some of the presentations know how to populate some ports by default. For example: - a list will populate the #selection port with the item selected in the ui - a tree will populate the #selectionPath with a collection holding the items from the selected item to the root of the tree
I hope this helps. Please continue to ask questions :)
Cheers, Doru
On 3 Nov 2010, at 12:59, Benjamin wrote:
hello, there still are things I do not understand in your examples, and I hope you could help me because I really want to understand how Glamour works ^^
When you write :
t1 transmit to: #three; from: #one -> #selectionPath;
what happen ?
Because I have looked for implementors of selectionPath, put a self halt in each of them, run your browser, but no halt has been thrown, so I'm confused (again).
Moreover, I now know how to show a list, and how to pass the selected items from the list to another column/row, but I wonder how to use the selected item as a parameter for a method and how to get the answer of this method back to be used in another part.
I keep hope to understand how it works ^^
Benjamin _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"We cannot reach the flow of things unless we let go."