Domanda

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?

È stato utile?

Soluzione

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

[[self.tableView currentEditor] setString:@"YourStringValue"];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top