• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Binding question (From: Arun <email@hidden>)

  • Prev by Date: Re: NSOperation, Sqlite, library routine called out of sequence
  • Next by Date: Re: Group Identity Programming
  • Previous by thread: Binding question
  • Next by thread: Observing properties which are not objects
  • Index(es):
    • Date
    • Thread