Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending IBActions to selectedObject of an NSArrayController



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Sending IBActions to selectedObject of an NSArrayController (From: Jeremy Faller <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.