[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adding another probe display
From: |
Akiko Ogawa - RS/GIS lab |
Subject: |
Re: adding another probe display |
Date: |
Sat, 19 Dec 1998 11:13:45 -0700 (MST) |
> >>>>> "AO" == Akiko Ogawa <- RS/GIS lab <address@hidden>> writes:
>
> AO> But After compiling, it turned out that only the most recent one,
> AO> "probeMap2" was created and the first "probeMap" was ignored.
>
> When CREATE_PROBE_DISPLAY(templateModelSwarm) is used in
> TemplateObserverSwarm to create the probe display, it does a look up
> of that augmented in the probe library using the object's class
> (TemplateModelSwarm) as a key.
>
> The setProbeMap: in +createBegin: in TemplateModelSwarm augments the
> probeMap associated with the TemplateModelSwarm Swarm subclass. By
> default, there is just one probeMap associated with a particular
> subclass; when you create and set two probe maps sequentially, it is
> the last one that is associated with the class. If you want two
> views to the same object, your Swarm/SwarmObject subclass must provide
> its own getProbeMap and return different probe maps depending on some
> object-specific state.
>
> As for #2, the easiest thing would be to see where it died:
>
> $ gdb template core
> (gdb) bt
Thank you Marcus, for your answer above.
As for #2, now it worked well. I just mistyped a function name which was thus
not
recognized.
As for #1, Could you please advise exactly what kind of codes and where should
I
insert in order to create 2 probe maps in TemplateModelSwarm.[hm]?
My guess is you are mentioning "-getProbeMapFor: (Class) aClass", bug I don't
know how it works.
Thank you.
-------------------------------------------
Akiko Ogawa
Department of Geography and Earth Resources
Utah State University
address@hidden
-------------------------------------------
==================================
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.