• 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
Possible to set control's action in IB, set target programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible to set control's action in IB, set target programmatically?


  • Subject: Possible to set control's action in IB, set target programmatically?
  • From: Sidney San Martín <email@hidden>
  • Date: Thu, 24 Sep 2009 17:11:38 -0400

I want to to set some controls' targets programmatically, but don't
need to change their actions. Interface Builder shows a binding for
"Target", which is perfect, but I can't find a way to set a control's
action in IB *without* hooking up a target.

What's the right way to do this? I could create an object with stub
methods, or even put them on an existing object (like the file's
owner, the one to which I'm binding the controls' targets), but those
are ugly solutions.
_______________________________________________

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

  • Follow-Ups:
    • Re: Possible to set control's action in IB, set target programmatically?
      • From: Sidney San Martín <email@hidden>
  • Prev by Date: Re: Background application is visible when I try to display a transparent backgrounded image into my app
  • Next by Date: Re: Core Data: relationship 'too large' when saving
  • Previous by thread: Re: UIPickerView: How do I LOOP data, as is done in UIDatePicker {looping Jan thru Dec} vs a mere list?
  • Next by thread: Re: Possible to set control's action in IB, set target programmatically?
  • Index(es):
    • Date
    • Thread