• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting action: with a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Setting action: with a variable (From: Mark Manes <email@hidden>)

  • Prev by Date: Re: Date compiled?
  • Next by Date: Re: Setting action: with a variable
  • Previous by thread: Setting action: with a variable
  • Next by thread: Re: Setting action: with a variable
  • Index(es):
    • Date
    • Thread