Re: selectText of NSTextField on focus
Re: selectText of NSTextField on focus
- Subject: Re: selectText of NSTextField on focus
- From: Quincey Morris <email@hidden>
- Date: Mon, 06 Jul 2015 20:44:52 +0000
On Jul 6, 2015, at 12:38 , Richard Charles <email@hidden> wrote:
>
> The delegate methods textDidBeginEditing: and controlTextDidBeginEditing: are not called when clicking into the view. They are called when the first edit is actually attempted. So that did not work.
My only other suggestion is that the frameworks might *always* issue a text selection, or at least the first time the text field is entered. (And you said this seems to be happening.) You might be able to override selectText: and use a flag to keep track of whether it’s the first time.
_______________________________________________
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