• 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: leenoori <email@hidden>
  • Date: Sat, 25 Nov 2006 16:20:23 +0100

El 24/11/2006, a las 20:59, Alan Smith escribió:

Protocols:
They would work except I would then have to implement it over and over
again and each implementation would be the same. I want to find a way
to only implement the methods once and then use that one
implmentations.

Another possible solution, use macros:

#define MY_METHOD - (void)doSomething { blah, blah, blah; }

Not saying you should do this, but it is an option.


_______________________________________________

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: Daniel Jalkut <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: Deployment target set to 10.4, still launches on 10.3.9
  • Next by Date: Re: NSViews not displayed properly when the window is resized
  • Previous by thread: Re: How do I give a set of methods to some objects but not others?
  • Next by thread: [ann] New Cocoa App Project Template
  • Index(es):
    • Date
    • Thread