Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击按钮后我需要开始NSTextFieldCell编辑(如果用户双击单元格,则行为相同)
NSTextFieldCell
我找到了一个performClick模拟用户通过光标单击的功能。我的想法是调用双击的模拟。此功能是否存在?或者您可以提出其他解决方案?
performClick
谢谢
- (IBAction)editclicked:(id)sender{ NSInteger col = [dreamTable columnWithIdentifier:@"data"]; NSInteger row = [dreamTable selectedRow]; [dreamTable editColumn:col row:row withEvent:NULL select:YES]; }
这是一个解决方案