Re: getting a selector for string
Re: getting a selector for string
- Subject: Re: getting a selector for string
- From: Bryan Blackburn <email@hidden>
- Date: Tue, 4 Feb 2003 01:40:38 -0700
- Mail-followup-to: email@hidden
Yup, the function NSSelectorFromString() does that (and
NSStringFromSelector() will do the opposite).
Bryan
On Feb 4, 2003 03:32, Ken Tozier stated:
>
I could have sworn that I saw some way to get a selector for a given a
>
string that defines a method name, but I can seem to find it now.
>
>
For example:
>
>
NSString *methodName = @"goToBedItsLate";
>
>
SEL methodSelector = SomeUnknownFunction( methodName );
>
>
Is there any way to do this?
>
>
Thanks,
>
>
Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.