Detecting a double click outside the table
Detecting a double click outside the table
- Subject: Detecting a double click outside the table
- From: Damien Cooke <email@hidden>
- Date: Wed, 2 Jul 2008 07:18:26 +0930
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden