I have a NSTextField and I want to set its content if I klick on a button and than set the cursor on this textfield at the end of the text so if someone klicks the button he
I am writing an ingame plugini, I were having a similar problem:
- (void)gotEvent:(NSEvent *)newEvent { [mainWindow makeKeyAndOrderFront:self]; [mainWindow makeFirstResponder:messageField]; [mainWindow sendEvent:newEvent]; // will forward the typing event }
this does the job :)