Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!europa.chnt.gtegsc.com!news.sprintlink.net!pipex!uknet!newsfeed.ed.ac.uk!udcf.gla.ac.uk!dcs.gla.ac.uk!clarkesj
From: clarkesj@dcs.gla.ac.uk (Steven J Clarke)
Subject: Displaying in views
Message-ID: <D89II1.84o@dcs.gla.ac.uk>
Organization: Computing Science Dept., Glasgow University, Glasgow, Scotland
X-Newsreader: TIN [version 1.2 PL2]
Date: Mon, 8 May 1995 13:51:36 GMT
Lines: 21

I am very new to smalltalk programming and need some help
please. I've consulted the FAQ and can't find an answer
to my problem.

I have a very simple model which has one instance variable
(numCounters). I've set up a view to link to this model and in
my displayView method I execute the following code to
display the value of the number in a window

self graphicsContext displayString: (self model numCounters)
			printString at:10@20.

However, it appears that the value is only being written
to the screen momentarily and dissappears from the window
leaving a blank window.

Could somebody please tell me why this is?

Thanks,

Steven
