RE: Nested binding question
RE: Nested binding question
- Subject: RE: Nested binding question
- From: "Kevin Hoffman" <email@hidden>
- Date: Tue, 4 Sep 2007 14:27:56 -0400
- Thread-topic: Nested binding question
Yeah, that's the idea.
Order - shows up as a box
Order Description - label
Order Items - bound to a table view
Order - shows up as a box
Order Description - label
Order Items - bound to a table view
etc...
-----Original Message-----
From: Dominik Pich [mailto:email@hidden]
Sent: Tuesday, September 04, 2007 2:26 PM
To: Kevin Hoffman
Cc: mmalc crawford; email@hidden
Subject: Re: Nested binding question
Is it simply this?
Order
Item -> view bound to Item.prop1 or prop2 and
containingOrder
prop1
prop2
....
articles array
containingOrder
Item -> view bound to Item.prop1 or prop2 and
containingOrder
prop1
prop2
containingOrder
Item -> view bound to Item.prop1 or prop2 and
containingOrder
prop1
prop2
....
articles array
containingOrder
Item -> view bound to Item.prop1 or prop2 and
containingOrder
prop1
prop2
....
articles array
containingOrder
If not / sorry I misunderstood :)
Regards,
Dominik
Am 04.09.2007 um 20:17 schrieb Kevin Hoffman:
> Actually what I need is the nested binding without having a current
> selection.
> So, I need some custom views where each view is bound to an element in
> the Orders controller, and within each of those custom views, there
> is a
> table view that is bound to the orderItems mutable array property
> on the
> order item to which the view is bound.
>
> Hopefully that made it clearer instead of sounding more delusional :)
>
> -----Original Message-----
> From: mmalc crawford [mailto:email@hidden]
> Sent: Tuesday, September 04, 2007 2:15 PM
> To: Kevin Hoffman
> Cc: email@hidden
> Subject: Re: Nested binding question
>
>
> On Sep 4, 2007, at 10:52 AM, Kevin Hoffman wrote:
>
>> So, theoretically, were someone to try and do this kind of nested
>> binding today using Tiger, how would they go about doing it?
>>
> It's not quite clear now exactly what you want.
>
> Is it the case that you have an array of Order objects managed by an
> array controller (Orders Controller) and you want in a table view to
> display the Order Items associated with the current selection in
> Orders Controller?
>
> If so, you need a second array controller, to manage the selection.
> Its Class Name will (obviously) be OrderItem, and you bind its Content
> Array to [Orders Controller].selection.
>
> mmalc
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden