Re: Setting action: with a variable
Re: Setting action: with a variable
- Subject: Re: Setting action: with a variable
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 27 May 2008 09:19:40 -0700
On May 27, 2008, at 9:04 AM, Mark Manes wrote:
If I define 'variable' to be NSString it is happy but at run time I
get an error stating that the target selector is Null. I can assure
you that variable exists and has a value of 'buttonAction:'.
What am I doing wrong?
You aren't passing a SEL as the action and, thus, the runtime can't
figure out what method you are trying to set at the action.
Try NSSelectorFromString().
b.bum
_______________________________________________
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