Re: Super's Super?
Re: Super's Super?
- Subject: Re: Super's Super?
- From: Charles Srstka <email@hidden>
- Date: Sat, 11 May 2002 22:47:36 -0500
On Saturday, May 11, 2002, at 10:42 PM, Jeff LaMarche wrote:
I have a situation where I need the functionality provided by the method
of the superclass of my superclass, but I need to override some of the
behavior of super and would prefer to cut it out of the loop totally
because I'm generating unneeded objects if I don't. How do you call
this?
I had thought at first that I could do something like: [[super
superclass] myMethod:myIVar];, but I realized after a runtime error made
it painfully obvious that superclass returns the class object.
I've temporarily worked around this by cutting and pasting the code into
my object's method, but I'd prefer not to do that. Any thoughts
appreciated as always.
Maybe your class should be the subclass of the super-super class instead
of its current superclass?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.