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

Re: Question


  • Subject: Re: Question
  • From: Nathan Day <email@hidden>
  • Date: Wed, 5 Dec 2001 14:26:04 +1030

On Tuesday, December 4, 2001, at 08:56 PM, email@hidden wrote:

Now, back to the point. Sure, I could fix the problem by coding a composite object (can't use protocols because protocols cannot inherit from classes, right?) with an union of both superclasses' interfaces, forwarding calls to a couple of objects that represent each state of the multiple superclass object, right?. However, this way I would not gain type equivalence, having to use "id" as parameter type whenever I need to receive an object like this one.

You can create a informal protocol for the methods you want to forward, I do this sometimes myself.


References: 
 >Re: Question (From: email@hidden)

  • Prev by Date: Re: Storing NSString with attributes + RTF
  • Next by Date: Getting Finder's Show Info Comments
  • Previous by thread: Re: Question
  • Next by thread: Re: Question (about C+, ObjC, ObjC++ ; long)
  • Index(es):
    • Date
    • Thread