Re: Binding question
Re: Binding question
- Subject: Re: Binding question
- From: Ken Thomases <email@hidden>
- Date: Wed, 29 Apr 2009 14:50:13 -0500
On Apr 28, 2009, at 5:09 AM, Arun wrote:
For the first table i have used the an array in my controller and
this array
has been set as content array in the ArrayController object.
Now when i double click in need to bind the table in the sheet to
the the
subjectDetails array. I am not able to figure out how to set the
binding
for the second table.
Any ideas?
You need a second array controller. Its content should be bound to
the first array controller, with controller key "selection", and model
key path "subjectDetails". You bind the table columns in the detail
view (the sheet) to this second array controller.
Look up "master-detail interface" in Apple's guides for more in-depth
description of this technique.
There are also some examples here: http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
Cheers,
Ken
_______________________________________________
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