Re: Sending IBActions to selectedObject of an NSArrayController
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