• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Super's Super?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Super's Super? (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Super's Super?
  • Next by Date: Re: Super's Super?
  • Previous by thread: Super's Super?
  • Next by thread: Re: Super's Super?
  • Index(es):
    • Date
    • Thread