swarm-support
[Top][All Lists]
Advanced

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

Re: acreateAction with arguments


From: Nelson Minar
Subject: Re: acreateAction with arguments
Date: Sun, 9 Jun 96 12:52:49 MDT

>the definition of aMethod is like this.
>-aMethod: (id)sendingInfo AgentList: (id)agentList;

>[modelActions createActionForEach: agentList
>       message: $(aMethod:) :(id)sendingInfo :(id)agentList];

close, but not quite. The real name of that method is
"aMethod:AgentList:". That's a bit weird, but it has to do with how
Objective C names methods.

So the way to insert your action is

[modelActions createActionForEach: agentList
        message: M(aMethod:AgentList:) : sendingInfo : agentList]


reply via email to

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