Re: NSTextField: How to DEselect text?
Re: NSTextField: How to DEselect text?
- Subject: Re: NSTextField: How to DEselect text?
- From: John Stiles <email@hidden>
- Date: Thu, 20 Dec 2007 18:50:35 -0800
Look into the field editor. You probably need to manipulate the
selection on the field editor, not the NSTextField itself.
Jerry Krinock wrote:
I'd like to pre-place some text into an NSTextField, and then give it
focus (make it firstResponder) and immediately allow the user type in
additional text, concatenating it.
Unfortunately, when I make the field firstResponder, my pre-placed
text is selected, and when the user starts typing, it gets
overwritten. Very annoying.
Does anyone know how to deselect text in an NSTextField?
NSTextField has a selectText:(id)sender method but no deselectText:
method.
I've tried sending -setStringValue:, -makeFirstResponder: and
-endEditingFor: in various different orders and combinations, but
nothing works.
Thanks,
Jerry Krinock
_______________________________________________
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
_______________________________________________
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