[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dropping and copying
From: |
Kerimcan Ozcan |
Subject: |
Dropping and copying |
Date: |
Sat, 31 Oct 1998 20:12:03 -0500 (EST) |
Hi folks,
I know, some of you will call me miserable for staying in on a Halloween
night and having nothing better to do than programming in Swarm, but
anyways, here it goes.
I have two Map objects, mapOld and mapNew respectively.
Members of these map objects are swarmobjects themselves (with several
variables and methods). Each time period, I use members in mapOld
to update member in mapNew (mapOld members are not modified meanwhile).
At the end of each time period, I would like to make mapOld an exact
replica of mapNew. Next time period, I will start with members of this
new mapOld object and update members of mapNew, and so on. In other
words, I have something similar to a double buffer operation here. I tried
[mapOld deleteAll];
[mapOld drop];
mapOld = [mapNew copy: [self getZone]];
However, this didn't work. Is there a clean-cut way of doing what I want
to achieve?
Kerimcan Ozcan
Doctoral Pre-Candidate in Marketing
University of Michigan Business School
Ann Arbor, Michigan, USA
http://www-personal.umich.edu/~kozcan/ozcan.html
==================================
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.
==================================