• 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: Bindings and 2 NSTableViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and 2 NSTableViews


  • Subject: Re: Bindings and 2 NSTableViews
  • From: email@hidden
  • Date: Sun, 9 Jan 2005 18:47:00 -0500

Thats what i though also, but when i do that, i  get this error:

[<BSCollection 0x3798f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key objects.


On 9-Jan-05, at 6:35 PM, mmalcolm crawford wrote:


On Jan 9, 2005, at 2:36 PM, email@hidden wrote:

I want to bind a BSCategoryList with a NSTableView. That works fine. I use an NSArrayController and set its contentArray to BSCategoryList.categories. When an item in that NSTableView is selected, i want another NSTableView to show the contents of the selected BSCategory. So, i set the binding for my column to my NSArrayController - selected - collection.title. Am i doing this right? Its not working on my side. Can anyone help me out here, maybe there's a tutorial on this somewhere.

This sounds like a master-detail display, like that shown here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Tasks/masterdetail.html>


You would in this case need a second array controller to represent the selected BSCategory's collection array. You bind the contentArray of the second array controller to:
[Categories Controller].selection.collection


mmalc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Bindings and 2 NSTableViews
      • From: mmalcolm crawford <email@hidden>
References: 
 >Bindings and 2 NSTableViews (From: email@hidden)
 >Re: Bindings and 2 NSTableViews (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Bindings and 2 NSTableViews
  • Next by Date: Re: Implementing Object persistence
  • Previous by thread: Re: Bindings and 2 NSTableViews
  • Next by thread: Re: Bindings and 2 NSTableViews
  • Index(es):
    • Date
    • Thread