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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com > > This email sent to nathan_...@mac.com Nathan Day Software Engineer mobile: +61 (0)4 3863 2407 home page: http://homepage.mac.com/nathan_day/ _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com