Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.ultranet.com!news.sprintlink.net!cs.utexas.edu!news.ti.com!ticipa!clw
From: clw@ticipa.pac.sc.ti.com (Chris Winemiller)
Subject: Re: MVC & VST - PARTS 3.0 ?
Message-ID: <1995Mar15.175628.12081@ticipa.pac.sc.ti.com>
Organization: None
References: <NEWTNews.6210.794904520.sgoodm@ibm.net>
Date: Wed, 15 Mar 1995 17:56:28 GMT
Lines: 24

In article <NEWTNews.6210.794904520.sgoodm@ibm.net> sgoodman@USFG.MAIL.COM writes:

>Does anyone have any tips on implementing an MVC-like structure in Visual 
>Smalltalk-PARTS 3.0? The objective would be to isolate the domain objects from 
>the PARTS instances. I'd also like to isolate other non-PARTS portions of the 
>application from the domain objects.  Any pointers to samples or approaches 
>would be appreciated!

Have you tried using the generally-available Event mechanism?  This
mechanism is available to any object.  You can create domain objects
which trigger events when aspects of themselves change; and you can
create UI components (for example) that "subscribe" to the domain
objects' events so they can take appropriate action.  I've used the
Event mechanism to isolate my domain objects from my UI objects with
good success.  Perhaps this will work for you.  Disclaimer: I haven't
used the PARTS portion of VST yet, so I don't know how the Events
mechanism will work there.

Regards,
Chris
==============================================================
Chris Winemiller               Internet: clw@works.ti.com
Disclaimer: I do not speak for TI.
==============================================================
