Hallo Ute,
Am 07.05.2007 um 13:29 schrieb Ute Hoffmann:
PopUpButton5: WOPopUpButton {
list = farbList; // = List of Dictionarys
displayString = aNotizFarbInfo; = String: concenation of two
valueForKeys (currentFarbWert.farbe + currentFarbWert.secoundvalue)
item = currentFarbWert; = aDictionary
selection = newItem.notizfarbe; = DB-Binding. The DB value is to
be set with currentFarbWert.farbe, a string
value = currentFarbWert.farbe;
}
selection will be one item (currentFarbWert) of farbList.
You can not get currentFarbWert.farbe into newItem.notizfarbe.
You need to either
- run your list = farbList.farbe (I hope farbList is an NSArray, but
you'll loose your displayString then), or
- make selection = selectedFarbe like
void setSelectedFarbe(NSDictionary aFarbDict)
{
newItem.setNotitzfarbe(aFarbDict.objectForKey("farbe"));
}
how to implement
NSDictionary selectedFarbe()
is left as an exercise ;)
you might drop the value-binding, it is not needed here.
atze
Freeport & Soliversum
Alexander Spohr
[EMAIL PROTECTED]
www.freeport.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]