[Newbies] Easy way to override a method?

Tim M 365nice at gmail.com
Sat May 17 01:22:22 UTC 2008


Is there an easy way in Squeak to override a method?

I have created a subclass of a class, and am viewing my subclass in a hierarchy 
browser. I have clicked on the superclass in the browser and am browsing 
methods to see what I need to override.

Having discovered a method that I want to override - I was hoping I could 
right click on that method and select Refactor|Override - but its not there 
(it is in Dolphin). Failing this I tried drag and drop - but that seems to 
just move the method (I held the Control key while dragging but I guess thats 
a Dolphin and a windows thing).

Is there some way to easily and quickly do this without having to cut and 
paste?

Tim





More information about the Beginners mailing list