• 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
obj-c: how do i call an instance method in my super's super?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

obj-c: how do i call an instance method in my super's super?


  • Subject: obj-c: how do i call an instance method in my super's super?
  • From: Ken Victor <email@hidden>
  • Date: Wed, 21 Sep 2005 17:20:11 -0700

given class structure:

baseClass
subClassOfBaseClass
subClassOfSubClassOfBaseClass

and each of these classes has an instance method foobar. how can i call baseClass's foobar from within subClassOfSubClassOfBaseClass's foobar?

for the time being, i've put a "proxy" method in subClassOfBaseClass that simpl;y calls baseClass's foobar and i call this "proxy" method from foobar in subClassOfSubClassOfBaseClass. but it seems that there aught to be a more direct approach (without having to talk directly to the runtime code).

thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: obj-c: how do i call an instance method in my super's super?
      • From: Bill Bumgarner <email@hidden>
    • Re: obj-c: how do i call an instance method in my super's super?
      • From: Ian Anderson <email@hidden>
  • Prev by Date: Re: How do I create a file name with a "/" in it?
  • Next by Date: NSResponder subclass not getting -mouseDown
  • Previous by thread: Bindings trouble.
  • Next by thread: Re: obj-c: how do i call an instance method in my super's super?
  • Index(es):
    • Date
    • Thread