Re: Get a selector type (SEL) from a string dinamically
Re: Get a selector type (SEL) from a string dinamically
- Subject: Re: Get a selector type (SEL) from a string dinamically
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 15 Jul 2005 00:05:25 +0100
On 7/14/05, Giovanni Donelli <email@hidden> wrote:
> Hello,
> does anybody know a way to get a SEL datatype out from a Class
> datatype (or an Object) from a string?
>
> I would like a function such as:
>
> SEL method = SelectorFromString( myClass, (NSString*)myMethodName)
SEL method = NSSelectorFromString(myMethodName);
> so then I can use it such as follows:
>
> objc_msgSend(myClass, myMethodName);
[myClass performSelector:myMethodName];
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden