• 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: Nathan Day <email@hidden>
  • Date: Mon, 21 Dec 2009 04:19:19 +1100

You can pass the hidden parameter _cmd which is of type SEL you can then use @selector(<selector_name>) to do your test, this whole thing you are doing sounds really strange, it would be good to see what you are doing to find a better approach. based on what little information your are giving us I would be sending an enum with each enum describing then option.

On 21/12/2009, at 12:18 AM, Chunk 1978 wrote:

> i have a bunch of methods that will call one method.  currently, i'm
> passing a string object so the called method will know which method
> had called it, and complete the proper task based on the method that
> called it.
>
> instead of creating strings and passing them, is it possible to pass
> the method name?
> _______________________________________________
>
> 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

Nathan Day
Software Engineer
mobile:		+61 (0)4 3863 2407
home page:	http://homepage.mac.com/nathan_day/







_______________________________________________

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

References: 
 >passing a method name? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: Core Data - Importing using NSOperation - Problems on main thread
  • Next by Date: Re: NSTableview datasource issues
  • Previous by thread: Re: passing a method name?
  • Next by thread: Re: passing a method name?
  • Index(es):
    • Date
    • Thread