• 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: kvc/kvo for arrays defeated me.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kvc/kvo for arrays defeated me.


  • Subject: Re: kvc/kvo for arrays defeated me.
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 13 Mar 2009 18:36:04 -0700

On Mar 13, 2009, at 18:20, Kyle Sluder wrote:

On Fri, Mar 13, 2009 at 9:00 PM, Quincey Morris
<email@hidden> wrote:
The problem here is that your table column must be bound to a property of
the class of the objects in the array. (That is, you specified
'arrangedObjects' for the controller key path of the column binding, but you
specified nothing for the model key path.)

This is the binding that's used to populate the object value of the column's cell. You should still bind the table's content binding so that the selection is taken care of.

In the simplest (and commonest) case, you don't have to bind the table to anything because it internally figures out the content binding from the column bindings, though of course there's nothing wrong with binding it explicitly too. Similarly you can omit the selectionIndexes and sortDescriptors binding unless you need something other than the default behavior.


Or am I missing your point?


_______________________________________________

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


  • Follow-Ups:
    • Re: kvc/kvo for arrays defeated me.
      • From: Kyle Sluder <email@hidden>
References: 
 >kvc/kvo for arrays defeated me. (From: Darren Minifie <email@hidden>)
 >Re: kvc/kvo for arrays defeated me. (From: Quincey Morris <email@hidden>)
 >Re: kvc/kvo for arrays defeated me. (From: Kyle Sluder <email@hidden>)

  • Prev by Date: NSTask and setuid
  • Next by Date: Re: kvc/kvo for arrays defeated me.
  • Previous by thread: Re: kvc/kvo for arrays defeated me.
  • Next by thread: Re: kvc/kvo for arrays defeated me.
  • Index(es):
    • Date
    • Thread