• 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: Is this possible without multiple inheritance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this possible without multiple inheritance?


  • Subject: Re: Is this possible without multiple inheritance?
  • From: Nathan Day <email@hidden>
  • Date: Fri, 4 Jul 2003 17:10:14 +0930

You really need to supply us with more information, there could be a completely different solution to your problem that does not need multiple inheritance. For example in objective-C polymorphism is independent of inheritance and so you may be able to solve your problem by simply implementing the methods you want in class that may be unrelated to either NSString nor NSSet.

On Friday, July 4, 2003, at 04:53 PM, Kyle Moffett wrote:

I have a particular object that needs to belong to both the NSString and NSSet class clusters. Unfortunately, I don't see any way to accomplish this without multiple inheritance of some sort. I am considering just subclassing NSObject and re-implementing several NSObject methods to fool things into thinking that my class belongs to both, but that kind of hackery is dreadful. Is there any way at all to do this neatly?

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.

References: 
 >Is this possible without multiple inheritance? (From: Kyle Moffett <email@hidden>)

  • Prev by Date: Is this possible without multiple inheritance?
  • Next by Date: Re: Is this possible without multiple inheritance?
  • Previous by thread: Is this possible without multiple inheritance?
  • Next by thread: Re: Is this possible without multiple inheritance?
  • Index(es):
    • Date
    • Thread