Skip navigation.
 
mlDetecting a double click outside the table
FROM : Damien Cooke
DATE : Tue Jul 01 23:48:26 2008

Hi all,
I have a window that has a custom NSTableView and an image cell. I 
have used this [tableView setDoubleAction: @selector(doubleAction:)]; 
to set the double action.  The issue is that I have a method in the 
tableview that the window controller can use to determine if a double 
click has occurred, I check this in the delegate  (BOOL)tableView:
(NSTableView *)aTableView shouldSelectRow:(NSInteger)rowIndex but it 
only works on the third click because it gets called every time I 
click.  There has to be a better way of detecting the double click in 
the tableview and telling my controller class this has happened.  Can 
someone point me in the right direction?

Regards
Damien

Related mailsAuthorDate
No related mails found.