• 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: NSTextField Selected Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField Selected Text


  • Subject: Re: NSTextField Selected Text
  • From: Richard Somers <email@hidden>
  • Date: Fri, 30 Mar 2012 16:21:45 -0600

On Mar 30, 2012, at 3:22 PM, Richard Somers wrote:

> When tabbing into a text field containing text, the text is selected. When clicking into a text field containing text, the I-beam cursor indicates the insertion point.
>
> How can I make clicking into text field containing text, initially select all the text just like tabbing does?

Just found an answer to my question on stack overflow. I previously did a search of the web and the documentation and came up with nothing. But I tried it again and found this.

http://stackoverflow.com/questions/2195704/selecttext-of-nstextfield-on-focus

--Richard


_______________________________________________

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: 
 >NSTextField Selected Text (From: Richard Somers <email@hidden>)

  • Prev by Date: NSTextField Selected Text
  • Next by Date: Returning a specific key's value for all members of a dict in an array.
  • Previous by thread: NSTextField Selected Text
  • Next by thread: Returning a specific key's value for all members of a dict in an array.
  • Index(es):
    • Date
    • Thread