Re: Doubleclick in a tableview row?
Re: Doubleclick in a tableview row?
- Subject: Re: Doubleclick in a tableview row?
- From: Jeff Gilbert <email@hidden>
- Date: Sat, 13 Nov 2004 10:07:00 -0600
Hi Peter,
On Nov 13, 2004, at 9:34 AM, Peter Karlsson wrote:
Dear list!
How do I check for a doubleclick in a tableview row?
You will want to look at setDoubleAction: on NSTableView. From the
documentation:
setDoubleAction:
- (void)setDoubleAction:(SEL)aSelector
Sets the message sent to the target when the user double-clicks an
uneditable cell or a column header to aSelector. If the double-clicked
cell is editable, this message isn’t sent and the cell is edited
instead. You can use this method to implement features such as sorting
records according to the column that was double-clicked.
For it to work you must make sure the column is not editable. Inside
your callback you can use clickedRow to determine which row was
double-clicked.
Best regards Peter
later,
Jeff Gilbert
_______________________________________________
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