Re: [Pharo-dev] Using TreeModelselectAll

2013-12-12 Thread Benjamin
Of ? Ben On 12 Dec 2013, at 08:11, Stéphane Ducasse stephane.duca...@inria.fr wrote: In the midterm would it not be better to start a new implementation? Stef On Dec 11, 2013, at 11:18 PM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: That’s the default behaviour I was

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-12 Thread Stéphane Ducasse
TreeMorph On Dec 12, 2013, at 10:27 AM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: Of ? Ben On 12 Dec 2013, at 08:11, Stéphane Ducasse stephane.duca...@inria.fr wrote: In the midterm would it not be better to start a new implementation? Stef On Dec 11, 2013, at 11:18

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-11 Thread Nicolai Hess
One thing I didn't understand is, are valueholders supposed to announce changes, even if the value didn't changed? |log node | log := OrderedCollection new. node:= TreeNodeModel new content: $a; whenSelectedChanged:[:item | self halt.log add:item]; selected: true; selected: true; selected: true.

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-11 Thread Benjamin
That’s the default behaviour I was thinking today of introducing a special one which act as you described Ben On 11 Dec 2013, at 21:49, Nicolai Hess nicolaih...@web.de wrote: One thing I didn't understand is, are valueholders supposed to announce changes, even if the value didn't changed?

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-11 Thread Stéphane Ducasse
In the midterm would it not be better to start a new implementation? Stef On Dec 11, 2013, at 11:18 PM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: That’s the default behaviour I was thinking today of introducing a special one which act as you described Ben On 11 Dec 2013,

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-09 Thread Benjamin
I am still chasing why it’s executed three times Must be an issue in the info propagation. Ben On 09 Dec 2013, at 06:48, Martin Dias tinchod...@gmail.com wrote: Hi, I'm back with more annoying questions :) Using #whenSelectedItemsChanged:, I see that the block is evaluated a lot of

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-09 Thread Martin Dias
thanks for your help, Ben On Mon, Dec 9, 2013 at 11:15 AM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: I am still chasing why it’s executed three times Must be an issue in the info propagation. Ben On 09 Dec 2013, at 06:48, Martin Dias tinchod...@gmail.com wrote: Hi, I'm back

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-08 Thread Martin Dias
Hi, I'm back with more annoying questions :) Using #whenSelectedItemsChanged:, I see that the block is evaluated a lot of times: log := OrderedCollection new. roots := #(1 2) collect: [ :each | TreeNodeModel new content: each; selected: true; yourself ]. TreeModel new roots: roots;

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-07 Thread Benjamin
roots := #(1 2 3) collect: [ :e | TreeNodeModel new content: e ; yourself ]. TreeModel new roots: roots; multiSelection: true; openWithSpec. roots third selected: true; takeHighlight Ben On 07 Dec 2013, at 05:44, Martin Dias tinchod...@gmail.com wrote: ouch! thanks Ben.

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-07 Thread Martin Dias
aha! thanks Martín On Sat, Dec 7, 2013 at 10:33 AM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: roots := #(1 2 3) collect: [ :e | TreeNodeModel new content: e ; yourself ]. TreeModel new roots: roots; multiSelection: true; openWithSpec. roots third selected: true;

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-06 Thread Martin Dias
ouch! thanks Ben. Another related question: is there any way of selecting an arbitrary item? I tried (among others) with: TreeModel new roots: #(1 2 3); multiSelection: true; openWithSpec; selection: 3 without success. Cheers, Martín On Thu, Dec 5, 2013 at 4:17 PM, Benjamin

[Pharo-dev] Using TreeModelselectAll

2013-12-05 Thread Martin Dias
Hi, I'm not sure how this method should be used. I tried in different ways, for example: TreeModel new roots: #(1 2 3); selectAll; openWithSpec But always the items are unselected. Is it a bug? or I didn't find the way to use it? Thanks, Martín

Re: [Pharo-dev] Using TreeModelselectAll

2013-12-05 Thread Benjamin
your tree here is single selection so it will not work TreeModel new roots: #(1 2 3); multiSelection: true; openWithSpec; selectAll Ben On 05 Dec 2013, at 15:38, Martin Dias tinchod...@gmail.com wrote: Hi, I'm not sure how this method should be used. I tried