Working Programmatically with Bound Controller's Selection
Working Programmatically with Bound Controller's Selection
- Subject: Working Programmatically with Bound Controller's Selection
- From: "William T. McVay" <email@hidden>
- Date: Wed, 27 Mar 2013 11:14:21 -0700
In my XIB, I have a pop-up button bound to an array controller that is bound to an NSMutableArray in my NSWindowController subclass instance. I added both the pop-up and the array controller in IB. Selection works, and I can use bindings to display the selected object's property values, as discussed helpfully in this list.
In my window controller methods, I want to access the object the user selects via the pop-up, using the selection (or selected objects) method (as in "Working With a Controller’s Selection"), but I do not know the name of the array controller for this purpose. (Maybe I am overlooking something obvious. If so, sorry for the dumb question.) How do I refer to the array controller by name in my source code?
Thanks,
Tom
W. T. McVay, (707) 987-6567
email@hidden, www.putahcreek.com
Hidden Valley Lake, CA 95467
_______________________________________________
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