• 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: How do I give a set of methods to some objects but not others?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I give a set of methods to some objects but not others?


  • Subject: Re: How do I give a set of methods to some objects but not others?
  • From: Henry McGilton <email@hidden>
  • Date: Fri, 24 Nov 2006 08:15:44 -0800



On Nov 24, 2006, at 7:36 AM, Alan Smith wrote:

Hmm…

Yes, that would work except Class A, B, and C all inherit from
different classes. Maybe it is I that is missing something?

How about creating a 'helper' class/object that acts as a delegate for your other classes ? Then you have the code in only one place.

    Cheers,
        ........  Henry


===============================+============================ Henry McGilton, Boulevardier | Trilithon Software Objective-C/Java Composer | Seroia Research -------------------------------+---------------------------- mailto:email@hidden | http://www.trilithon.com | ===============================+============================



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How do I give a set of methods to some objects but not others? (From: "Alan Smith" <email@hidden>)
 >Re: How do I give a set of methods to some objects but not others? (From: John Stiles <email@hidden>)
 >Re: Re: How do I give a set of methods to some objects but not others? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator drawing
  • Next by Date: Re: why there is a memory leak in this method?
  • Previous by thread: Re: Re: How do I give a set of methods to some objects but not others?
  • Next by thread: Re: How do I give a set of methods to some objects but not others?
  • Index(es):
    • Date
    • Thread