• 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: Jonathan Hendry <email@hidden>
  • Date: Fri, 24 Aug 2001 18:25:57 -0500

On Friday, August 24, 2001, at 06:05 , Stuppel, Searle @ San Diego Central wrote:

I thought that in VERY RARE instances some classes in cocoa can inherit from
two superclasses. Not sure on this though. I just remember reading something
to this effect.

Nope. Perhaps you saw a Protocol-using Class declaration?

@interface Foo:NSObject <SomeProtocol>
{
}
@end

The <SomeProtocol> is analogous to Java's 'implements SomeInterface'

it's like a contract that Foo implements all the methods declared
in SomeProtocol. Foo has to provide the actual implementations,
so it doesn't inherit anything. If Foo doesn't provide the implementations
for the methods, it won't compile.


  • Follow-Ups:
    • Re: Docs, questions and stuff
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Getting the image of a window?
  • Next by Date: Re: Docs
  • Previous by thread: Re: Docs, questions and stuff
  • Next by thread: Re: Docs, questions and stuff
  • Index(es):
    • Date
    • Thread