How to use WOAssociation.associationWithKeyPath()
How to use WOAssociation.associationWithKeyPath()
- Subject: How to use WOAssociation.associationWithKeyPath()
- From: Kevin Xiaowen Ren <email@hidden>
- Date: Fri, 10 Sep 2004 17:22:06 +1200
HI,
From parent component I past some binding values to subcomponent,like
list = aList; item = modelItem;displayString = modelItem.name;
The subcomponent is WODynamicElement with NSDictionary(WOAssociation,key ).
i can get the actual value aList like:
WOAssociation a = (WOAssociation)associations.objectForKey(list);
a.valueInComponent(component);
But when I want to get displayString, I got problem.
Because the keyPath is "modelItem.name", I can't use valueInComponent() method.
item is dynamic in list loop , but "modelItem" is static varible name.
Try to use WOAssociation.associationWithKeyPath() to get dynamic value, any
one have any idae?
Sorry about my English,
thanks
kevin
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.