Question

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?

Was it helpful?

Solution

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

[[self.tableView currentEditor] setString:@"YourStringValue"];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top