• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSArrayController with Combo Boxes, etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSArrayController with Combo Boxes, etc.
      • From: "Kent A. Signorini" <email@hidden>
References: 
 >NSArrayController with Combo Boxes, etc. (From: "Kent A. Signorini" <email@hidden>)

  • Prev by Date: Re: NSArrayController with Combo Boxes, etc.
  • Next by Date: Custom NSView from IB Palette refuses to shrink
  • Previous by thread: Re: NSArrayController with Combo Boxes, etc.
  • Next by thread: Re: NSArrayController with Combo Boxes, etc.
  • Index(es):
    • Date
    • Thread