Re: kvc/kvo for arrays defeated me.
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