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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to