Double clicking rows vs. column headers
Double clicking rows vs. column headers
- Subject: Double clicking rows vs. column headers
- From: Paul Ferguson <email@hidden>
- Date: Wed, 20 Feb 2002 09:29:31 -0800
I am using -setDoubleAction: in an NSTableView controller to take action
when a user double clicks a row. All cells in the table are
non-editable, and users cannot select columns. (It is similar to the
main window in Mail.app)
This works fine when a user double clicks a row. My problem is that if
the user double clicks a column header, my controller's action method is
also called, and I can't figure out how to distinguish between a
double-click in a row, and a double-click in a column header. In both
cases, [sender selectedColumn] returns -1, and [sender selectedRow]
returns the most recently selected row, or -1 if no row is selected.
Thanks,
<fergy/>
_______________________________________________
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.