• 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: Couple more binding questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Couple more binding questions


  • Subject: Re: Couple more binding questions
  • From: Yann Bizeul <email@hidden>
  • Date: Fri, 17 Sep 2004 08:20:29 +0200

Hello,

The problem I'm having is getting it to work with multiple selections in the list table. Using selection causes nothing to be displayed in the myObject table. I tried using selectedObjects.data instead, but it appears that that's causing the myObject controller array to be populated with the arrays instead of the objects in the arrays. I get a NSCFArray doesn't respond to columnKey error when testing.
I understood you want to display values concerning the selected object in your second table... But what if you select two objects ? The NSArrayController *will* have to return an NSArray. AFAIK, a NSTableView column is unable to take values from two objects, I'm afraid you will have to subclass a NSObjectController to get the selected object(s) and do what you have to do to merge them in something the second NSTableView can accept.

Did I understand nothing ? Am I completely wrong ? :-)

--
Yann Bizeul - yann at tynsoe.org
Cocoa Developer, visit my projects at :
http://projects.tynsoe.org/


 _______________________________________________
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

References: 
 >Couple more binding questions (From: Brad Miller <email@hidden>)

  • Prev by Date: Re: The invisible file in Macintosh?
  • Next by Date: Re: [Q] Bindings, FilteringController and KVC compliance
  • Previous by thread: Couple more binding questions
  • Next by thread: Re: Couple more binding questions
  • Index(es):
    • Date
    • Thread