2012-02-02 13 views
0

我需要的按钮后点击(相同的行为,如果对小区用户双击)开始NSTextFieldCell编辑通过点击链接

我发现了一个功能performClick它通过模拟鼠标用户点击开始NSTextFieldCell编辑。我的想法是调用双击的模拟。此功能是否存在?或者您可以建议其他解决方案?

由于

回答

0
- (IBAction)editclicked:(id)sender{ 
    NSInteger col = [dreamTable columnWithIdentifier:@"data"]; 
    NSInteger row = [dreamTable selectedRow]; 
    [dreamTable editColumn:col row:row withEvent:NULL select:YES]; 
} 

这是一个溶液