Howto access model element from NSTableView selection ?
Howto access model element from NSTableView selection ?
- Subject: Howto access model element from NSTableView selection ?
- From: Pierre CHATEL <email@hidden>
- Date: Mon, 8 May 2006 01:13:49 +0200
Hi List,
i have an application with an NSTableView displaying the content of
an already existing array. I'm using an NSArrayController and
bindings to fill the columns of my tableview.
When i sort the content of the tableView by clicking on a column
title, only the view is sorted, not the content of the array... which
is great from an MVC standpoint.
But how do i know which element of the array is selected when the
user of my application double-click on a row of the tableview ?
I can't rely on the click index since the view has been sorted but
not the model array.
Is there a way to access the displayed value of a row in a column
without using the view's dataSource ?
Thanks !
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden