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

On Fri, Mar 13, 2009 at 9:00 PM, Quincey Morris
<quinceymor...@earthlink.net> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to