Re: View based NSTableView and NSArrayController not in sync
Re: View based NSTableView and NSArrayController not in sync
- Subject: Re: View based NSTableView and NSArrayController not in sync
- From: Lee Ann Rucker <email@hidden>
- Date: Tue, 11 Oct 2011 13:49:51 -0700
Did you also bind the table view's Selection Indexes to arrayController.selectionIndexes?
On Oct 11, 2011, at 1:44 PM, Andre Masse wrote:
> Hi,
>
> Here's the background: XCode 4.1, Lion (10.7.1) non CoreData, document based application using the master/detail paradigm.
>
> I'm currently trying to switch a working project to a view based NSTableView. I think I've set things up correctly in the nib because data is showing fine in the tableView. Particulary, I've bound the tableView content to the arrayController arrangedObjects.
>
> Now, the problem is the tableView and the arrayController are not in sync. For example, selecting a row in the tableview has no effect on the selectionIndexes in the arrayController. Also, using selectNext/selectPrevious (I have buttons for this in the detail view) doesn't change the selection in the tableView (but is in sync with the model).
>
> Am I missing something obvious here?
>
> Thanks,
>
> Andre Masse
> _______________________________________________
>
> 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
_______________________________________________
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