• 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
NSArrayController with Combo Boxes, etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController with Combo Boxes, etc.


  • Subject: NSArrayController with Combo Boxes, etc.
  • From: "Kent A. Signorini" <email@hidden>
  • Date: Sat, 10 Jan 2004 21:38:41 -0700

I hope someone can help me. I have a two part question here:

PART 1 ------

I am using an NSArrayController with an array of objects I've created.
To make this simpler, I'll only mention the required object variables.
The object is called Combatant and each one has the following:

name weapon 1 weapon 2 weapon 3 weapon 1 damage weapon 2 damage weapon
3 damage shield rating

Now I have a section of my document that includes an NSComboBox. In
that combo box I want the data to fill with the names of the three
weapons for the currently chosen combatant.

THEN, for whichever weapon is chosen, another NSTextField will display
that chosen weapon's damage rating.

Is this difficult to do? How would I do it?

PART 2 ------

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.

Now, based on the name chosen in that combo box, another NSTextField
will display this second combatant's shield rating variable value.

Any suggestions for this?

Thanks for any help you can provide.

Kent!
_______________________________________________
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: mmalcolm crawford <email@hidden>
    • Re: NSArrayController with Combo Boxes, etc.
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: NSObject description not working
  • Next by Date: Re: NSArrayController with Combo Boxes, etc.
  • Previous by thread: Re: NSObject description not working
  • Next by thread: Re: NSArrayController with Combo Boxes, etc.
  • Index(es):
    • Date
    • Thread