focus a NSTextField

Posted by Jeena on Stack Overflow See other posts from Stack Overflow or by Jeena
Published on 2009-04-18T20:51:12Z Indexed on 2010/05/16 10:40 UTC
Read the original article Hit count: 238

Filed under:
|

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 could just begin to type.

Until now I use [NSTextField selectText] it selects this textfield but it selects the whole text so if someone just begins to type he'd lose all the text which alread is in the textfield.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c