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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Presenting is storytelling."