[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: perform$with and object-to-display-object binding
From: |
Fred Wan |
Subject: |
RE: perform$with and object-to-display-object binding |
Date: |
Fri, 23 Mar 2001 16:44:57 +0100 |
A follow up on my previous message. Apparently setObjectCollection should
only be called if a collection of objects is being displayed (otherwise
there's a crash). It works now, so my first question is dropped, but the
original one remains, which is
In ObserverSwarm.buildObjects:162 I created a Object2dDisplay object for the
TargetBug object. It seems silly to create a complete Object2dDisplay object
for just one object, so I wanted it to display it through a call to
bugDisplay. Can this be done, and if so, how? The ref guide is not very
elaborate on this point.
Fred.
targetDisplay.setObjectCollection(modelSwarm.getTargetBug());
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf Of Marcus G. Daniels
> Sent: Thursday, March 22, 2001 9:03 PM
> To: address@hidden
> Subject: Re: perform$with and object-to-display-object binding
>
>
> >>>>> "FW" == Fred Wan <address@hidden> writes:
>
> FW> there is a method perform$with (actually a whole family).
>
> If you want to send different messages to the same object, where the
> message itself is a parameter, you can use `perform' (or, if the
> arguments are not objects, you can use FCall). Imagine you wanted
> to set a filter function on some data stream or have the user set a
> step routine, etc.
>
> FW> In other words, if a Object2dDisplayImpl object has been created
> FW> can no other object than a SimpleBug display on the ZoomRasterImpl
> FW> object provided?
>
> You can have many such displays writing to a raster.
>
> ==================================
> Swarm-Support is for discussion of the technical details of the day
> to day usage of Swarm. For list administration needs (esp.
> [un]subscribing), please send a message to <address@hidden>
> with "help" in the body of the message.
>
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.