Hello! Could anyone help me, please?
I have faced with a problem of TreeModel childrenBlock: for more complex build in structure. For example, I have anOrderedCollection of Dictionary, and in each dictionary, there are exist associations, which values are anArray(aDictionary, aDictionary ...). I need to make drop downs for all of these entire levels of arrays and dictionaries. For first level I made it: collectionsList ifNil: [ ^ nil ] ifNotNil: [ collectionsList hasChildrenBlock: [ :item | item isMyDictionary. ]. collectionsList childrenBlock: [ :item | item associations collect: [ :assoc | assoc key asString , ' -> ' , assoc value asString. ] ] ] MyDictionaly is the class, inherited from Dictionary, just to override method printOn: At the first picture, it's how it looks like, how I made it. At the second - how I expect it to be (taken from Inspector window). Thanks a lot! <http://forum.world.st/file/n4942409/before.jpg> <http://forum.world.st/file/n4942409/after.jpg> -- View this message in context: http://forum.world.st/How-childrenBlock-in-TreeModel-works-tp4940884p4942409.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.