Pergunta

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?

Foi útil?

Solução

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

[[self.tableView currentEditor] setString:@"YourStringValue"];
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top