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




On Sep 4, 2007, at 11:27 AM, Kevin Hoffman wrote:

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

If the table view is a subview of your custom view, I *think* the same principles apply as with my original reply:

"... 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."


The difference is that your custom view will itself need its own array controller, and when it (your custom view) is bound to its value, it will have to bind the Content Array of its array controller to the orderItems property of the value.

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>)
 >RE: Nested binding question (From: "Kevin Hoffman" <email@hidden>)
 >Re: Nested binding question (From: Dominik Pich <email@hidden>)
 >RE: Nested binding question (From: "Kevin Hoffman" <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.