• 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: Sending IBActions to selectedObject of an NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending IBActions to selectedObject of an NSArrayController


  • Subject: Re: Sending IBActions to selectedObject of an NSArrayController
  • From: "I. Savant" <email@hidden>
  • Date: Sun, 27 Jan 2008 21:02:45 -0500

I have an NSArrayController in IB that's connected to an array in one of my objects. I'd like to bind a button to send an IBAction to the selected object of the array controller, but I'm not seeing the easy way to accomplish this. I've tried an NSObjectController bound to NSArrayController's selectedObject, but even when I set the class type I can't get at the IBActions of the target class.

NSButton has a "target" binding. If you've read the introductory material on Cocoa, you know that buttons follow the target/action pattern. Since you have the target, now all you need to do is set the action. Doing it in code is of course an option ...


--
I.S.


_______________________________________________

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: 
 >Sending IBActions to selectedObject of an NSArrayController (From: Jeremy Faller <email@hidden>)

  • Prev by Date: Sending IBActions to selectedObject of an NSArrayController
  • Next by Date: Re: designing beyond MV and (one) C
  • Previous by thread: Sending IBActions to selectedObject of an NSArrayController
  • Next by thread: Can't get a Parent-Child CoreData relationship working
  • Index(es):
    • Date
    • Thread