• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: selectText of NSTextField on focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >selectText of NSTextField on focus (From: Richard Charles <email@hidden>)
 >Re: selectText of NSTextField on focus (From: Richard Charles <email@hidden>)
 >Re: selectText of NSTextField on focus (From: Quincey Morris <email@hidden>)
 >Re: selectText of NSTextField on focus (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: Errors resulting from Cocoa datatype changes 10.9 -> 10.10
  • Next by Date: Re: selectText of NSTextField on focus
  • Previous by thread: Re: selectText of NSTextField on focus
  • Next by thread: Re: selectText of NSTextField on focus
  • Index(es):
    • Date
    • Thread