• 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
Inheritance question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inheritance question


  • Subject: Inheritance question
  • From: "Daniel Angermeier" <email@hidden>
  • Date: Fri, 17 Aug 2007 12:23:40 +0200

Hi,

I am trying to call a method of a suberclass , which was overriden in
a subclass.
Class MyClass inherits from MySuperClass

In the context of MyClass:
[(MySuperClass *)self theMethod];

However, this call does not invoke MySuperClass's implementation but
that of MyClass.
How can force it to use the method in MySuperClass ?

Any hints appreciated.

Thanks,

Daniel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Inheritance question
      • From: Simone Tellini <email@hidden>
  • Prev by Date: Re: How to enable menu items for the submenu of NSPopupButton?
  • Next by Date: Re: When does an object own its instance variable?
  • Previous by thread: Re: When does an object own its instance variable?
  • Next by thread: Re: Inheritance question
  • Index(es):
    • Date
    • Thread