swarm-support
[Top][All Lists]
Advanced

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

"create: self" and "create: [self getZone]]"


From: Akiko Ogawa - RS/GIS lab
Subject: "create: self" and "create: [self getZone]]"
Date: Fri, 11 Feb 2000 14:50:12 -0700 (MST)

Hello, 

Would anyone answer me what the difference of above two, "create: self" and 
create: [self getZone]];

My question is about the same program I mentioned in my previous e-mail "Error 
creating a List."

I created a ModelSwarm that has a List of swarmObjects.
In those swarmObjects, I again created a List of another swarmObjects.

When I created a List and swarmObjects in the List, I typed:

    AObj *aObj;

    aList = [List create: self];
    for (i=0;i<num;i++) {
       aObj = [createBegin: self];
       aObj = [aObj createEnd];
       [aList addLast: aObj];
    }

But when I created a List and swarmObjects in AObj copying the above codes and 
renaming AObj to BObj, an run-time error occurred saying:

>*** event raised for error: InvalidArgument
>*** function: _i_Object_s__doesNotRecognize_(), file: 
>/home/sanduku/apps/swarm-2.0.1/src/defobj/DefObject.m, line: 872
>AObj does not recognize allocIVars:*** execution terminating due to error
>/home/sanduku/apps/swarm-2.0.1/src/defobj/Symbol.m:173 -[Error(c) _raiseEvent:]
>Abort
(object name modifed for this query)

Instead, it worked when I changed the lines:

    bList = [List create: [self];
to
    bList = [List create: [self getZone]];

and,
    bObj = [createBegin: self];
to 
    bObj = [createBegin: [self getZone]];

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