Re: call selector @"mySelector"
Re: call selector @"mySelector"
- Subject: Re: call selector @"mySelector"
- From: Jim Correia <email@hidden>
- Date: Fri, 30 Sep 2005 10:07:32 -0400
On Sep 30, 2005, at 9:19 AM, Aaron Wallis wrote:
I was wondering how I would go about getting cocoa to call a
selector defined in a string?
You don't "call a selector," you send a message.
SEL selector = NSSelectorFromString(@"aSelector");
[object performSelector: selector withObject: nil];
Jim
_______________________________________________
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