Re: How to detect a single mouse click on a cell in a TableView?
Re: How to detect a single mouse click on a cell in a TableView?
- Subject: Re: How to detect a single mouse click on a cell in a TableView?
- From: Nicola Vitacolonna <email@hidden>
- Date: Fri, 12 Apr 2002 10:28:50 +0200
On Thursday, April 11, 2002, at 12:35 , Nicola Vitacolonna wrote:
2) I also tried to make the column uneditable in IB and implement
table:didClickTableColumn:, but this is called when the user
double-clicks on the header too, which I definitely don't want to
happen.
You can easily ignore that, can't you?
Well, I think I wrote something wrong. I tried
table:didClickTableColumn. As far as I can understand, it is sent when
the user clicks (not double-clicks) on the header (and not in other
parts), so one can do some operation on a whole column (such as sorting
based on the clicked column). So, it is not useful to my purpose.
The solution previously posted about using [table
setAction:@selector(handleClickOnTableItem)] is just what I needed.
Another solution might be usign an NSButtonCell as the data cell for
the appropriate column.
Yes, that's another way. I preferred using a string (such a checkmark
symbol) instead of an NSButton just for aesthetic reasons.
Thank you!
Nicola
_______________________________________________
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.