From: Satoshi N. <sna...@in...> - 2008-04-14 08:43:18
|
Hi, You can call the method of the super class with "super_" prefix like super_trackMouse_inRect_ofView_untilMouseUp. -- Satoshi Nakagawa On 2008/04/14, at 16:44, Allison Newman wrote: > Hi again, > > I've got another newbie question to ask. When I override a method > of a Cocoa class with a Ruby method, how do I call the superclass's > overridden version of the method? I've tried the standard Ruby > 'super', but that just ends up with a stack overflow due to an > infinite recursive loop. > > Specifically, I have a subclass of NSCell that overrides > trackMouse_inRect_ofView_untilMouseUp, but NSCell does some useful > processing in it's version of the function. How do I call it? > > Thanks for any help (or an explanation that what I want to do is not > possible...) > > Alli |