Re: passing a method name?
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