Re: NSArrayController with Combo Boxes, etc.
Re: NSArrayController with Combo Boxes, etc.
- Subject: Re: NSArrayController with Combo Boxes, etc.
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 10 Jan 2004 21:06:24 -0800
On Jan 10, 2004, at 8:38 PM, Kent A. Signorini wrote:
In another NSComboBox in my document, I want the data to be the names
of all the combatants controlled by the NSArrayController EXCEPT the
one that's currently selected.
I *think* you should be able to do this using a custom array controller
that uses the same content array as the first, but which filters out
its (the first's) selection (make an appropriate binding) -- for an
example of filtering see:
<
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
Now, based on the name chosen in that combo box, another NSTextField
will display this second combatant's shield rating variable value.
That will simply be selection.shieldRating (FilteredArrayController)
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.