Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!news.duke.edu!agate!howland.reston.ans.net!cam.news.pipex.net!pipex!edi.news.pipex.net!pipex!sunsite.doc.ic.ac.uk!dcs.gla.ac.uk!mac_f091_136.dcs.gla.ac.uk!user
From: clarkesj@dcs.gla.ac.uk (Steven Clarke)
Subject: Dependencies and controllers
X-Nntp-Posting-Host: mac_f091_136.dcs.gla.ac.uk
Message-ID: <clarkesj-2206951512160001@mac_f091_136.dcs.gla.ac.uk>
Sender: news@dcs.gla.ac.uk (Network News)
Organization: Computing Science Dept., Univ of Glasgow
Date: Thu, 22 Jun 1995 15:12:16 GMT
Lines: 21

Hope someone can help me with this one!

I'm using VisualWorks and have a window with a SequenceView contained
within. I also have another view with which I hope to show data related
to the current selection in the SequenceView. In other words, each time
the user selects a new entry in the SequenceView, I want my other
view to update accordingly.

My problem is I can't set up a dependency between the SequenceView (or
to be exact, the controller that controls the SequenceView since it is
this that handles the user actions) and my other view since that means
in effect creating a dependency between a view and a controller.

Does anyone know of anyway I can do this? Is there another mechanism
for finding out when the selectionIndex of the SequenceView has changed
(since that tells me that the user has selected another entry)?

Thanks very much,

Steven Clarke
clarkesj@dcs.gla.ac.uk
