On 12/08, stepharo wrote:
> Hi peter
> 
> Do you mean instead of having ValueChanged?
> What would be scenario for ValueRemoved?
> 

In addition to ValueChanged.

col := OrderedCollection new asValueHolder.

col add: 1. "ValueAdded with 1 announced"
col remove: 1. "ValueRemoved with 1 announced"

of course in both cases ValueChanged would be fired as normal.
But for collections from ValueChanged I can't tell what has been changed.

> Stef
> 
> Le 8/12/15 01:01, Peter Uhnak a écrit :
> >Hi,
> >
> >when (any) ValueHolder changes, a ValueChanged announcement is fired.
> >
> >My question: Would it be a good idea to add ValueAdded and ValueRemoved
> >for CollectionValueHolder?
> >
> >Otherwise there's no way to meaningfully observe changes.
> >
> 
> 

-- 
Peter

Reply via email to