Created
November 20, 2009 12:01
-
-
Save hammerdr/239457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <AppKit/CPTableView.j> | |
@implementation CPTableView (DoubleClick) | |
- (void)mouseDown:(CPEvent)anEvent | |
{ | |
if ([anEvent clickCount] == 2) | |
{ | |
var index = [[self selectedRowIndexes] firstIndex]; | |
if(index >= 0) | |
{ | |
objj_msgSend([self target], [self doubleAction], self); | |
} | |
} | |
[super mouseDown:anEvent]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment