Re: Docs, questions and stuff
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