Blocking Selection in Columns of NSTableView
Blocking Selection in Columns of NSTableView
- Subject: Blocking Selection in Columns of NSTableView
- From: Gordon Apple <email@hidden>
- Date: Fri, 07 Sep 2007 09:25:04 -0700
I have researched this one and tried a variety of things. My tables
have at least two columns in which I do not wish to trigger row selection.
The first column is a set of line numbers from a data source, but in which I
would like to identify the row clicked. (I may want to change text color in
the row clicked to indicate something.)
The second column contains toggle buttons showing either nothing or the
letter 'X' and is bound to a BOOL in the table's data array.
I tried "tableView:shouldSelectRow" and
"tableView:shouldSelectTableColumn: but wasn't able to do what I wanted.
What is the best way to 1. Block Selection? 2. Capture which row was
clicked in a column? "columnClicked" and "rowClicked" don't seem to get it
(or maybe I'm trying to intercept too late).
_______________________________________________
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