NSArrayController with Combo Boxes, etc.
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.