I like your spirit :) and this is great to see your questions.
Stef
On Nov 3, 2010, at 1:04 PM, 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
Hi guys :)
I'm still trying to understand the magic of Glamour, but as you guess, I've another misunderstood something ...
Here is my code :
browser transmit to: #three; from: #one; andShow: [:presentation | presentation tree title: 'Tree'; display: [:elt | dictionary := ((Checker wantedClasses:{elt}) compute ). dictionary keys]; children: [:elt :x :level | level > 1 ifTrue: [#()] ifFalse: [ (dictionary at: elt)]]]; format: [:set | self halt]]
Here is the example code : browser transmit to: #namespaces; andShow: [ :a | a tree display: [ :model | model allNamespaces select: [ :each | each isRoot ] ]; children: [ :namespace | namespace childScopes ]; format: [ :namespace | namespace stubFormattedName ] ]. When I run my code i get 'MessageNotUnderstood: GLMTransmission>>format:'
I do not know why ...
Ben
Hi,
you sent #format: to the result of #transmit instead of the #tree because you closed too many blocks before.
Doru
On 4 Nov 2010, at 12:29, Benjamin wrote:
Hi guys :)
I'm still trying to understand the magic of Glamour, but as you guess, I've another misunderstood something ...
Here is my code :
browser transmit to: #three; from: #one; andShow: [:presentation | presentation tree title: 'Tree'; display: [:elt | dictionary := ((Checker wantedClasses:{elt}) compute ). dictionary keys]; children: [:elt :x :level | level > 1 ifTrue: [#()] ifFalse: [ (dictionary at: elt)]]]; format: [:set | self halt]]
Here is the example code : browser transmit to: #namespaces; andShow: [ :a | a tree display: [ :model | model allNamespaces select: [ :each | each isRoot ] ]; children: [ :namespace | namespace childScopes ]; format: [ :namespace | namespace stubFormattedName ] ]. When I run my code i get 'MessageNotUnderstood: GLMTransmission>>format:'
I do not know why ...
Ben _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Presenting is storytelling."
Ouups :s
I'll try to open my both eyes before sending a mail now :)
Thank you
Ben
Just embrace the debugger :). It told you that the receiver was a Transmission, and you should have wanted a Presentation.
But, asking questions is no problem. Actually, please continue :).
Doru
On 4 Nov 2010, at 12:45, Benjamin wrote:
Ouups :s
I'll try to open my both eyes before sending a mail now :)
Thank you
Ben _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"From an abstract enough point of view, any two things are similar."