swarm-support
[Top][All Lists]
Advanced

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

Re: Sending message to all objects in a list?


From: glen e. p. ropella
Subject: Re: Sending message to all objects in a list?
Date: Mon, 14 Oct 1996 11:22:01 -0600

> I got a list where I store all instances of a class. Now, I want to send a
> message to all of those instances. Is there any way I can send that
> message to list, so that all objects can receive the message? I appreciate
> your time. Thank you
> 
> Naga Krothapalli
> Florida State University

Yep, there sure is.  Look in HeatbugObserverSwarm.m at about line
#98, where it sends the "setBugColor" message to each member of the
bug list.

>  // Now go in to the heatbugs in the model and set their colours to green (64)
>  [[heatbugModelSwarm getHeatbugList] forEach: M(setBugColor:) : (void *) 64];

glen



reply via email to

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