• 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: Obj-C question: protocol usage and inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-C question: protocol usage and inheritance


  • Subject: Re: Obj-C question: protocol usage and inheritance
  • From: Nat! <email@hidden>
  • Date: Sun, 15 Sep 2002 20:07:32 +0200

The problem is that the compiler gives me warning because name and setName are not implemented in MyClass (which is true: these methods are inherited from MySuperClass). I thought the compiler would notice that MyClass has access to these methods by inheritance.

I would have thought so too. I am not sure why this isn't the case. The behaviour has been there the last 5 years at least and it's very inconvenient.

How do you people usually deal with this? Do you re-define inherited methods in sub-classes (yuck)? Are you even using protocol for polymorphism?

Dont' laugh:

#warning (nat) ignore next two warnings because of compiler lameness

But mostly I have given up on protocols altogether.

Ciao
Nat!

Jedenfalls sind zehn Fehlstarts hintereinander [E. Fuchs]
ein sehr interessanter Beweis
fuer unsere Theorie
von der natuerlichen Ueberlegenheit des Dezimalsystems
_______________________________________________
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.

  • Follow-Ups:
    • Re: Obj-C question: protocol usage and inheritance
      • From: Normand Rivard <email@hidden>
References: 
 >Obj-C question: protocol usage and inheritance (From: Normand Rivard <email@hidden>)

  • Prev by Date: Obj-C question: protocol usage and inheritance
  • Next by Date: Data to String: what encoding?
  • Previous by thread: Obj-C question: protocol usage and inheritance
  • Next by thread: Re: Obj-C question: protocol usage and inheritance
  • Index(es):
    • Date
    • Thread