This is an old bug. It would be cool if someone would tackle it :)
On Tue, Jul 28, 2015 at 8:26 AM, Gareth Cox <gareth(a)inspired.org> wrote:
Not sure if this is a bug, but here goes.
Looking through the Glamour examples in Pharo4 I come across the
Updateable Browser example.
This example has a line that, when the collection is greater than 1, shows
a list tab, the title of which is List, col size printString.
This indeed comes up and shows: 'List: 2' but if you continue to add, it
doesn't change. The text will change but not the title.
I came across this when I couldn't get my browser to add tabs, even though
entity gets updated.
Example from Glamour below.
| browser collection|
collection := GLMAnnouncingCollection new.
collection add: 1.
browser := GLMTabulator new.
browser column: #preview.
act: [:b | b entity add: (b entity size + 1). b update ]
icon: GLMUIThemeExtraIcons glamorousAdd
entitled: 'Add an item in the collection'.
act: [:b | b entity removeLast. b update ]
icon: GLMUIThemeExtraIcons glamorousRemove
entitled: 'Remove last item from the collection'.
updateOn: GLMItemAdded from: #yourself;
updateOn: GLMItemRemoved from: #yourself.
browser transmit to: #preview; andShow: [ :a |
title: [:col | 'List: ', col size printString ]; *"This
when: [:col | col size > 1 ].
a text title: 'Text';
format: [:col | 'Current collection: ', col printString, '.
Add more items to show the list'] ].
browser openOn: collection
Inspired Org (PTY) Ltd
Moose-dev mailing list
"Every thing has its own flow"