From: Allison N. <dem...@ma...> - 2008-04-14 11:50:38
|
Merci beaucoup! Actually, I thought I had already tried that, with it ending up in an infinite loop... I guess not. On Monday, April 14, 2008, at 10:43AM, "Satoshi Nakagawa" <sna...@in...> wrote: >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 > > >------------------------------------------------------------------------- >This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >Don't miss this year's exciting event. There's still time to save $100. >Use priority code J8TL2D2. >http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >_______________________________________________ >Rubycocoa-talk mailing list >Rub...@li... >https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > |