seeing inherited methods

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

seeing inherited methods

Warakorn Paphrawat
Hi !
In squeak I haven't managed yet to see inherited methods.
For instance subclassB extends superclassA. superclassA has several methods.
However, when I like at the methods of subclassB, I cannot see the methods of superclassA (but there should be there).

Warakorn


All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: seeing inherited methods

Alexandre Jasmin
Le dimanche 08 octobre 2006 à 14:33 -0700, Warakorn Paphrawat a écrit :
> Hi !
> In squeak I haven't managed yet to see inherited methods.
> For instance subclassB extends superclassA. superclassA has several
> methods.
> However, when I like at the methods of subclassB, I cannot see the
> methods of superclassA (but there should be there).
>
Try unsing "browse protocol" on the class.

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: seeing inherited methods

Giovanni Corriga
In reply to this post by Warakorn Paphrawat
Il giorno dom, 08/10/2006 alle 14.33 -0700, Warakorn Paphrawat ha
scritto:
> Hi !
> In squeak I haven't managed yet to see inherited methods.
> For instance subclassB extends superclassA. superclassA has several
> methods.
> However, when I like at the methods of subclassB, I cannot see the
> methods of superclassA (but there should be there).

The class browser only shows you the methods which are defined in the
selected class, which in your case is subclassB. In order to see the
methods of superclassA, you should browse to superclassA.

If you're interested in knowing all the messages subclassB can
understand you can look at the "vocabulary" of subclassB. You can open
the vocabulary browser by middleclicking on the class name in the class
list pane and selecting "browse protocol (p)".

        Giovanni

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners