• 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: glenn andreas <email@hidden>
  • Date: Tue, 22 Dec 2009 13:20:48 -0600

On Dec 22, 2009, at 12:58 PM, Matt Neuburg wrote:

> On Tue, 22 Dec 2009 09:56:33 +1100, Graham Cox <email@hidden>
> said:
>> Regarding the use of different completion methods based on manipulating some
> common root name, I think that's a bit strange, misguided even.
>
> But when the kind of situation that calls for it arises, it might seem very
> natural and elegant. I'm just suggesting that we not condemn an architecture
> out of hand merely because we've no experience of it. m.
>

And isn't even that uncommon - consider all the various kvc methods based on common name (as an example of manipulating a common root name for multiple purposes).

And I've written menu validation code that manipulates the selector to figure out the name of the method to actually handle the validation (which is more of the "completion method" style thing - dynamically figure out what to call based on the SEL passed in)...




Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know

_______________________________________________

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: Graham Cox <email@hidden>
References: 
 >Re: passing a method name? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: NSRecursiveLock problems
  • Next by Date: Re: Autorotation for a subview
  • Previous by thread: Re: passing a method name?
  • Next by thread: Re: passing a method name?
  • Index(es):
    • Date
    • Thread