Does NSTableHeader's resizedColumn method actually work?
Does NSTableHeader's resizedColumn method actually work?
- Subject: Does NSTableHeader's resizedColumn method actually work?
- From: "Bell, Carl" <email@hidden>
- Date: Mon, 8 Apr 2002 16:33:57 -0500
- Thread-topic: Does NSTableHeader's resizedColumn method actually work?
Howdy,
I'm working with an NSTableView, and am trying to get clicks in the
column headers to work. I want users to be able to toggle the sort
of a column by clicking on an already selected column. I don't
actually want them to select the column, so I've turned off the "Allows
Column Selection" attr. IIRC, you don't get a call to
didClickTableColumn
if the column is already selected when this attr is enabled.
Instead of didClickTableColumn, I'm using mouseDownInHeaderOfTableColumn
and hiliting the column's header as needed. This works well, except for
one thing. I get a mouseDownInHeaderOfTableColumn when the user clicks
the divider to resize the column which causes my app to select or toggle
the column.
I had thought I could use the NSTableHeader's resizedColumn to see if
the user clicked in the divider, but it always returns -1. (Hence the
subject line... I'm sure it does work, just not as I thought... :-)
Is there some better way for my tableview to know that the user is
resizing and not clicking in the header?
-cb
________________________________________________________________________
Carl W. Bell Baylor University Electronic Libraries
Sr. Analyst/Programmer <
http://www3.baylor.edu/~Carl_Bell/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.