[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Background color in raster widgets...
From: |
Barry McMullin |
Subject: |
Re: Background color in raster widgets... |
Date: |
Tue, 07 Jan 1997 14:32:23 +0000 |
At 13:52 07/01/97 -0600, "Sven N. Thommesen" <address@hidden> wrote:
[...]
>Thanks! But I'd just like to know where you call that one from!
>
>To be useful, it would need to be called once every time step,
>which I tried to do, without success, with [worldRaster erase].
You mean you couldn't even schedule [worldRaster erase] or
you couldn't schedule my replacement for it?
>The problem: putting your method call in buildActions does not work,
>because createActionTo: takes a maximum of 3 arguments ... :-(
You've lost me now - maybe I need to take a more careful
look at my code again (I threw away the observer/model
distinction which makes it a little different from the
other example apps - but I don't think that affects your
question).
But basically, in my model I do not exploit the scheduling
machinery in any significant way at all (a "while (YES)" loop
would work just as well!): my modelActions has only one
action - being to send a "step" to the modelSwarm; it, in turn,
sends a "step" to my worldManager which does all the model
updating for one step - including the raster updating. But even
if you don't want to collapse *everything* into one message
in this way, you can add a message ("eraseRaster"?), taking no
arguments, to your model swarm or any other convenient object,
which just encapsulates sending the message I showed you
(with arguments) to the raster object - then include that
"eraseRaster" in your schedule...
But if there's more to it than that, ping me again!
Barry.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Barry McMullin, Autonomous Systems Group, | address@hidden |
| School of Electronic Engineering, | Voice: +353-1-704-5432 |
| Dublin City University, Dublin 9, IRELAND. | FAX: +353-1-704-5508 |
| http://www.eeng.dcu.ie/~mcmullin/home.html | |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++