Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Nested binding question



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Nested binding question (From: "Kevin Hoffman" <email@hidden>)
 >RE: Nested binding question (From: "Kevin Hoffman" <email@hidden>)
 >Re: Nested binding question (From: mmalc crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.