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

Is this possible without multiple inheritance?


  • Subject: Is this possible without multiple inheritance?
  • From: Kyle Moffett <email@hidden>
  • Date: Fri, 4 Jul 2003 03:23:22 -0400

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?

Thanks in Advance,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a16 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP? t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r !y?(-)
------END GEEK CODE BLOCK------
_______________________________________________
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.
  • Follow-Ups:
    • Re: Is this possible without multiple inheritance?
      • From: publiclook <email@hidden>
    • Re: Is this possible without multiple inheritance?
      • From: j o a r <email@hidden>
    • Re: Is this possible without multiple inheritance?
      • From: Nathan Day <email@hidden>
  • Prev by Date: adding applescripts to applescript build phase
  • Next by Date: Re: Is this possible without multiple inheritance?
  • Previous by thread: adding applescripts to applescript build phase
  • Next by thread: Re: Is this possible without multiple inheritance?
  • Index(es):
    • Date
    • Thread