• 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: Cocoa classes question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa classes question


  • Subject: Re: Cocoa classes question
  • From: Luc Vandal <email@hidden>
  • Date: Tue, 5 Jul 2005 14:25:41 -0400

I have some code I want to reuse in different objects so I thought I could write a class that other classes would derive from. I guess I'll simply create an instance of that class in the objects that will need it.

Luc


On 5-Jul-05, at 2:17 PM, Will Mason wrote:

Objective-C does not support multiple inheritance, but you can achieve
similar results by using protocols and/or categories. What are you
trying to do?

Will

--- Luc Vandal <email@hidden> wrote:

Hi,

what is the syntax so a class can derrive from more than one class? I

tried

@interface MyClass: NSObject, MyOtherClass

and I get a compile error.

Thanks!

Luc



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

email@hidden

This email sent to email@hidden



_______________________________________________ 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: Cocoa classes question
      • From: Daniel DeCovnick <email@hidden>
    • Re: Cocoa classes question
      • From: SA Dev <email@hidden>
References: 
 >Re: Cocoa classes question (From: Will Mason <email@hidden>)

  • Prev by Date: Re: HTML + CSS specs used in the WebKit for NSTextView
  • Next by Date: NSTextView
  • Previous by thread: Re: Cocoa classes question
  • Next by thread: Re: Cocoa classes question
  • Index(es):
    • Date
    • Thread