• 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: Docs, questions and stuff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Docs, questions and stuff


  • Subject: Re: Docs, questions and stuff
  • From: Ondra Cada <email@hidden>
  • Date: Sat, 25 Aug 2001 16:30:38 +0200

Jonathan,

>>>>>> Jonathan Hendry (JH) wrote at Fri, 24 Aug 2001 18:25:57 -0500:
JH> Nope. Perhaps you saw a Protocol-using Class declaration?
JH>
JH> @interface Foo:NSObject <SomeProtocol>
JH> {
JH> }
JH> @end
JH>
JH> The <SomeProtocol> is analogous to Java's 'implements SomeInterface'
JH>
JH> it's like a contract that Foo implements all the methods declared
JH> in SomeProtocol. Foo has to provide the actual implementations,
JH> so it doesn't inherit anything. If Foo doesn't provide the
JH> implementations
JH> for the methods, it won't compile.

It *will*, of course, thanks God -- we are in ObjC, not C++. You'd get just
a warning. The very good reason for that is that you can implement some
methods dynamically (using forwardInvocation), or using categories.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: Docs, questions and stuff (From: Jonathan Hendry <email@hidden>)

  • Prev by Date: Re: Docs, questions and stuff
  • Next by Date: Re: Docs, questions and stuff
  • Previous by thread: Re: Docs, questions and stuff
  • Next by thread: Re: Docs, questions and stuff
  • Index(es):
    • Date
    • Thread