swarm-support
[Top][All Lists]
Advanced

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

Re: using selectors


From: James Marshall
Subject: Re: using selectors
Date: Mon, 20 Jul 1998 13:24:29 GMT

Hi,

> >>>>> "JM" == James Marshall <address@hidden> writes:
> 
> JM> [alleleGraph createSequence: "Total population" withFeedFrom:
> JM> [epdSwarm getWorld] andSelector: M(getWorldPopulation)];
> 
> The signature of a method with an argument would look like this:
> 
>    getWorldPopulationFor:
> 
> to get that selector these are equivalent:
> 
>    M(getWorldPopulationFor:)
>    @selector(getWorldPopulationFor:)
> 
> Unfortunately, as it is now, the message probe (i.e. ActiveGraph) that ends
> up getting used is created internally in EZGraph, and not accessible for
> frobbing the arguments.
>

So where does that leave me? I'm still trying stuff but nothing seems 
to work for me...
 
> JM> now I need to know how to pass a parameter along with the message
> JM> (an integer in my case). 
> 
> What is the purpose of the integer?
>

The integer is used to retrieve a value from an array for plotting on 
the EZgraph. I have an array of 5 integers I want to plot to the 
EZgraph, and obviously wanted one method to do this instead of 5!
        James
 
--
James Marshall - Postgraduate Research Student (MPhil/PhD)
Artificial Intelligence Group - Department of Computer and Information Sciences
De Montfort University - Milton Keynes Campus
Web:- http://www.mk.dmu.ac.uk/~jmarshall/

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