NSPopupButton Bindings
NSPopupButton Bindings
- Subject: NSPopupButton Bindings
- From: Johnny Lundy <email@hidden>
- Date: Sat, 19 Apr 2008 20:58:12 -0400
Good evening,
I am having trouble understanding the bindings for NSPopupButton.
View: NSPopupButton
Controller: NSArrayController, just for the popup button
Model: NSMutableArray of NSMutableDictionaries.
I have the array controller bound to the array in the model, and that
is working fine.
My question is: which one of these multiple bindings do I want if I
want to have either the popup button's selectedIndex or the actual
mutableDictionary at that index passed to my method (I am using
another NSButton to invoke the method using the selection of the array
controller as an argument).
So far I am getting the proper strings in the popup, but what is
getting passed to the method looks like the [dictionary description]
of the first item in the model array, no matter what I select in the
popupButton.
I've spent the whole day scouring the docs for some guidance in which
of the (Content, Content Objects, Content Values, Selected Index,
Selected Object, and Selected Value) to use in order to send the model
array element (or its index, I can deal with either) as an argument to
my method.
Thanks in advance if anyone can point me to a more descriptive doc
than Apple's laconic one on these six different attributes of
selection for popupbuttons.
_______________________________________________
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