swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug report: use of Pixmaps


From: Sven N. Thommesen
Subject: Re: Bug report: use of Pixmaps
Date: Mon, 05 Apr 1999 17:43:23 -0500

At 10:41 AM 4/5/1999 -0500, you wrote:
>"Sven N. Thommesen" wrote:
>> 
>
>> To get this to work, each agent has the following method, which is invoked
>> by the relevant Object2dDisplay object (one such object per raster for each
>> agent type):
>> 
>> -drawIconOn: (id <Raster>) r
>> {
>>    [bugPixmap setRaster: r];
>>    [r draw: bugPixmap X: x Y: y];
>>    return self;
>> }
>> 
>
>I have agents drawing on two rasters, but I avoided this problem totally
>by accident.  The agent has two draw methods, one for each raster, and
>the observer swarm is told which to use for which raster in the usual
>way.  Then I don't get the setRaster thing firing off each time through.
>  
>
>Would something like that fix the problem?

Yep. That's what I've done -- programmed around it.
That leaves it open for Marcus to declare it a "feature" instead of a "bug" ;-)

Sven


                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]