When I tried to edit the column using -(void)editColumn:(NSInteger)column row:(NSInteger)row withEvent:(NSEvent *)theEvent select:(BOOL)select of NSTableView the field editor always comes at the beginning of the NSTextField.I inserted some tab spaces for the text. I would like to move the field editor(cursor) to the start of the text. Any hints to accomplish this?

有帮助吗?

解决方案

I am able to solve the issue using the following code.

[[self.tableView currentEditor] setString:@"YourStringValue"];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top