swarm-support
[Top][All Lists]
Advanced

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

Re: GraphDemo


From: manor
Subject: Re: GraphDemo
Date: Wed, 9 Apr 1997 10:13:55 -0700

Hi Pietro!

If you compare the essence of the HeatbugBatchSwarm 'go' method,
and the BankBatchSwarm version you will see the difference which
is the source of the problem:

-------------------------------------------------------

// Bank Version

-go {

  [swarmActivity run];
  return [swarmActivity getStatus];

}

// Heatbug Version

-go {

  [[self getActivity] run];
  return [[self getActivity] getStatus];

}

-------------------------------------------------------

What is happening here is that I am accessing a
variable which is no longer available directly,
and must instead be accessed through 'getActivity'.

If you look in:

  http://www.santafe.edu/projects/swarm/swarmdocs/index.html

Under Compatibility.II.3. this is mentioned:

  "The high-level structural changes in the activity library has led
   to the renaming of the variable swarmActivity. It is recommended
   that [self getActivity] be used in its place (if your app even
   used this variable, it was probably in the BatchSwarm). This is a
   new message and it takes the place of the getSwarmActivity message.
   But, the obsolete message has been left in place for backwards
   compatibility."

Regards,

Manor.

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