Hi,
I'm trying to understand the workings of the "display: children:" message of Moose Browsers. Based on the Help Browser example, I have write a node object which contains a header, a body and a ordered collection of Children, wich are other nodes. Now I would like to use moose browsers to navigate a tree made of such nodes. For that I am modifying the "packagesIn:" tree of the PBE2 book example in the Moose chapter. I have something like this: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= UbakyeBrowser>>packagesIn: constructor | defaultTree | defaultTree := UbakyeNode new. defaultTree becomeDefaultTree. constructor tree display: [:treeHeaders | treeHeaders := defaultTree headers]; children: [:currentNode | self headersOf: currentNode ]; format: #asString -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= The display part is working just because I'm sending a collection of node names (headers), but I don't know how to relate the current selected node with the things that should be shown by the "children:" message. Any help on this is appreciated. By the way, I would like to share my code and point to it, instead of sharing just cut and pasted snippets, because may be I'm doing tons of errors in a lot of places. I have already asked in a separate thread about how to sync local cache and SmalltalkHub repos. Cheers, Offray