NSTableView Data Binding Problem
NSTableView Data Binding Problem
- Subject: NSTableView Data Binding Problem
- From: Chris Schmitt <email@hidden>
- Date: Sun, 10 Feb 2008 00:03:03 -0500
I have an NSTableView hooked up to an NSArrayController. The
columns in the table view are bound to the array controllers
arrangedObjects. The array controller is hooked up to my coredata
model and is being driven from the selection in an NSOutlineView.
If I click on a row in outline view the table displays the data and
everything is working fine. But if I set the selected row
programmatically using the setSelectionIndexPath(0) to select the
first row then the table displays nothing. I have verfied that the
content and arrangedObjects of the array controller contain the data,
but the table still does not display anything. I have even tried to
explicitly call the setNeedsDisplay method on the table view, and I
still get nothing.
I am setting the selection programmatically so that there is always a
row selected if the outline view has data.. Also I have verified that
the outlineViewSelectionDidChange notificaiton is sent out when I
change the selection programmatically.
Any advice would be great.. I am completely lost on this one as it
seems like it should work.
Thanks in advance for your help.
_______________________________________________
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