Re: [Pharo-users] DictionaryValueHolder question
Yes this is why I said that we should use them On Wed, Sep 13, 2017 at 10:40 AM, Peter Uhnákwrote: > > > On Wed, Sep 13, 2017 at 9:45 AM, Stephane Ducasse > wrote: >> >> incomplete >> I would use Announcement. > > > ValueAdded/ValueChanged/ValueRemoved are all announcements. > > P
Re: [Pharo-users] DictionaryValueHolder question
On Wed, Sep 13, 2017 at 9:45 AM, Stephane Ducassewrote: > incomplete > I would use Announcement. > ValueAdded/ValueChanged/ValueRemoved are all announcements. P
Re: [Pharo-users] DictionaryValueHolder question
incomplete I would use Announcement. On Tue, Sep 12, 2017 at 3:46 AM, Rob Rothwellwrote: > Hello, > > Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies > you that something has changed, rather than tell you what item has been > added or removed. Does anyone know if this is by design, or just > incomplete? > > If incomplete, what do you think about using the > ValueAdded/ValueChanged/ValueRemoved announcements and passing the > association in newValue/oldValue? > > Thank you, > > Rob > >
Re: [Pharo-users] DictionaryValueHolder question
Hi Peter, Thank you very much for the clarification; I'll see what I can come up with! Take care, Rob On Tue, Sep 12, 2017 at 11:18 AM, Peter Uhnákwrote: > Hi Rob, > > this is by omission. Originally CollectionValueHolder didn't have it > either until I've introduced ValueAdded/ValueRemoved. So feel free to > incorporate it in a meaningful fashion to a DictionaryHolder. > > Peter > > On Tue, Sep 12, 2017 at 3:46 AM, Rob Rothwell > wrote: > >> Hello, >> >> Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies >> you that something has changed, rather than tell you what item has been >> added or removed. Does anyone know if this is by design, or just >> incomplete? >> >> If incomplete, what do you think about using the >> ValueAdded/ValueChanged/ValueRemoved announcements and passing the >> association in newValue/oldValue? >> >> Thank you, >> >> Rob >> >> >> >
Re: [Pharo-users] DictionaryValueHolder question
Hi Rob, this is by omission. Originally CollectionValueHolder didn't have it either until I've introduced ValueAdded/ValueRemoved. So feel free to incorporate it in a meaningful fashion to a DictionaryHolder. Peter On Tue, Sep 12, 2017 at 3:46 AM, Rob Rothwellwrote: > Hello, > > Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies > you that something has changed, rather than tell you what item has been > added or removed. Does anyone know if this is by design, or just > incomplete? > > If incomplete, what do you think about using the > ValueAdded/ValueChanged/ValueRemoved > announcements and passing the association in newValue/oldValue? > > Thank you, > > Rob > > >
[Pharo-users] DictionaryValueHolder question
Hello, Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies you that something has changed, rather than tell you what item has been added or removed. Does anyone know if this is by design, or just incomplete? If incomplete, what do you think about using the ValueAdded/ValueChanged/ValueRemoved announcements and passing the association in newValue/oldValue? Thank you, Rob