Re: passing a method name?
Re: passing a method name?
- Subject: Re: passing a method name?
- From: Matt Neuburg <email@hidden>
- Date: Sun, 20 Dec 2009 08:40:41 -0800
- Thread-topic: passing a method name?
On Sun, 20 Dec 2009 08:18:36 -0500, Chunk 1978 <email@hidden> said:
>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?
What I do in this situation is pass _cmd. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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