Avoid selection of text in NSTextField
Avoid selection of text in NSTextField
- Subject: Avoid selection of text in NSTextField
- From: Luc Van Bogaert <email@hidden>
- Date: Sat, 08 Jan 2011 23:03:58 +0100
Hi,
I'm creating some kind of numerical keypad with several buttons that can be used to "insert" text (eg. a number) into a NSTextField.
When I use such a button, the text gets inserted correctly, but the text in the field is automatically selected. I would like to avoid that, and have the NSTextField display a cursor instead, as if it was being edited manually. Could anyone provide some help on how to so this? Thank you!
--
Luc Van Bogaert
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden