Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!portc02.blue.aol.com!howland.erols.net!feed1.news.erols.com!insync!uunet!in3.uu.net!165.254.2.53!nonexistent.com!not-for-mail
From: vlad@world2u.com (Vlastimil Adamovsky)
Subject: Re: How to add events to Collections?
X-Newsreader: Forte Free Agent 1.0.82
X-Nntp-Posting-User: (Unauthenticated)
Message-ID: <E2wAAo.ALx@nonexistent.com>
References: <19961221224300.RAA04169@ladder01.news.aol.com> <32BD669A.59C1@acm.org> <E2uCJ6.6yr@nonexistent.com> <32BEF371.6BAB@acm.org>
X-Trace: 851392029/13735
X-Nntp-Posting-Host: i123.142.world2u.com
Date: Tue, 24 Dec 1996 01:48:38 GMT
Lines: 22

"Russell T. Vernick" <vernick@acm.org> wrote:
>......

>It occurs to me that some UI widgets would want to have the collection
>as its list, but I would think that the application containing the list
>would be able to alter the collection by altering the domain object and
>listen for domain-type events.

Yes, domain-specific events should be fired by domain object. 
But when you change contents (state) of a Collection, then the Collection should
fire the event. Sometimes it is really difficult to know what approach is
"correct".  

The solution of Tansel Ersavas confirms my point of view.

Merry Christmas to all of you.


 Vlastimil Adamovsky
 ** C++ and Smalltalk consultant **
 * http://www.stepweb.com *

