Problems moving a class to make it a ProtoObject subclass

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems moving a class to make it a ProtoObject subclass

Sebastián Sastre
Hi all,

    I have a class (subclass of Object) that actually can be a ProtoObject
subclass. When I drop it over ProtoObject an error is displayed (Index 1 is
out of bounds) without the possibility of a debbuger.

    After the drop the subclass does not appear to be there, but with a new
CHB it is there and also the original one, so this can generate duplicated
classes.

    best regards,

Sebastián


Reply | Threaded
Open this post in threaded view
|

Re: Problems moving a class to make it a ProtoObject subclass

Sebastián Sastre
It happened when in the image there still where instances of the
"transplanted" class.
Removing those instances made the drag and drop to be flawless.

Regars,

Sebastián


"Sebastián Sastre" <[hidden email]> escribió en el mensaje
news:[hidden email]...

> Hi all,
>
>    I have a class (subclass of Object) that actually can be a ProtoObject
> subclass. When I drop it over ProtoObject an error is displayed (Index 1
> is out of bounds) without the possibility of a debbuger.
>
>    After the drop the subclass does not appear to be there, but with a new
> CHB it is there and also the original one, so this can generate duplicated
> classes.
>
>    best regards,
>
> Sebastián
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Problems moving a class to make it a ProtoObject subclass

Schwab,Wilhelm K
Sebastián,

> It happened when in the image there still where instances of the
> "transplanted" class.
> Removing those instances made the drag and drop to be flawless.

Would you consider this to be similar to the duplicate classes problem I
had and was echoed shortly thereafter (by Chris I think)?

Did you use the CHB or the SB?  Did you use any filtering goodies?  I
have one (the Acme Filter Store) and there is also a filtering method
browser, and perhaps others I don't know about.  Not to impugn any third
party tools, I sometimes wonder whether they might hold onto "stale"
compiled methods and cause some unexpected trouble.

There was also some discussion of how to purge an image of duplicates.
If you try any of it (please make a backup first), I would be interested
to know how it goes.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Problems moving a class to make it a ProtoObject subclass

Sebastián Sastre
Bill I answer you below each question...

"Bill Schwab" <[hidden email]> escribió en el mensaje
news:ct6c02$q04$[hidden email]...
> Sebastián,
>
>> It happened when in the image there still where instances of the
>> "transplanted" class.
>> Removing those instances made the drag and drop to be flawless.
>
> Would you consider this to be similar to the duplicate classes problem I
> had and was echoed shortly thereafter (by Chris I think)?

Yes. I think is the same situation.

>
> Did you use the CHB or the SB?  Did you use any filtering goodies?  I have
> one (the Acme Filter Store) and there is also a filtering method browser,
> and perhaps others I don't know about.  Not to impugn any third party
> tools, I sometimes wonder whether they might hold onto "stale" compiled
> methods and cause some unexpected trouble.

I was using the CHB, and I have the Ian goodies and some other ones, but no
Acme stuff yet.

> There was also some discussion of how to purge an image of duplicates. If
> you try any of it (please make a backup first), I would be interested to
> know how it goes.

It happened to me serveral times, and the workarround I allways worked fine
to me was this:

Supose to have this:

    DuplicatedSuperclass
        AcmeClass
        DuplicatedClass
        DuplicatedClass
        EmalClass
        ....

    if I remember it in the right order, I should do this:

    1. Delete DuplicatedClass from the class browser, and then
    2. evaluate this line in a workspace:   (DuplicatedSuperclass
allSubclasses at:2) removeFromSystem.

regards,

Seb

>
> Have a good one,
>
> Bill
>
> --
> Wilhelm K. Schwab, Ph.D.
> [hidden email]