swarm-support
[Top][All Lists]
Advanced

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

Re: Problem with BatchSwarm and EZGraph


From: Marcus G. Daniels
Subject: Re: Problem with BatchSwarm and EZGraph
Date: 20 Apr 2001 11:57:16 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "MM" == Marian Mihalo <address@hidden> writes:

MM> In ObserverSwarm.m I have in the same object(Graph):
MM> withFeedFrom:self andSelector: M(getFoodNumber)]; and in
MM> BatchSwarm.m I have : withFeedFrom:[modelSwarm getBugList]
MM> andSelector: M(getFoodNumber)];

MM> could anybody say me a difference between:

MM> withFeedFrom:[modelSwarm getBugList] andSelector:
MM> M(getFoodNumber)]; and withFeedFrom:self andSelector: M(getFoodNumber)];

You are abbreviating the message names, so I can't say for sure what
method you are using.  If it is -createSequence:withFeedFrom:andSelector:,
as in your last message, then the former sends getFoodNumber to the list
object (no, not the members of the List).  If it is the second the
getFoodNumber message is sent to `self', which you indicate above is the
ObserverSwarm object.

MM> How function is with self, what is returned when I use a "self" etc.?????

"self" is the @implementation context you are in.  If you use "self"
in a factory method, then it is the current class.  If you use "self"
in a normal instance method (like your example), it instance of that
class that received a that message.

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