• 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: passing a method name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing a method name?


  • Subject: Re: passing a method name?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 22 Dec 2009 21:28:16 -0600

On Tue, Dec 22, 2009 at 5:22 PM, Graham Cox <email@hidden> wrote:
> This is exactly the sort of code smell we were always on the look out for at code reviews, and it was always avoidable. In every case, the revised code was more elegant, maintainable and straightforward. I don't believe there is a genuine case where it would be more "natural and elegant" to do this than to take a more conventional approach. I'm also unaware of any part of Cocoa doing this.

See -[NSControl tag] for an example of where it's done in Cocoa.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: passing a method name?
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: passing a method name? (From: Matt Neuburg <email@hidden>)
 >Re: passing a method name? (From: glenn andreas <email@hidden>)
 >Re: passing a method name? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Core Data registered editors?
  • Next by Date: Re: passing a method name?
  • Previous by thread: Re: passing a method name?
  • Next by thread: Re: passing a method name?
  • Index(es):
    • Date
    • Thread