• 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 Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField Selection


  • Subject: Re: NSTextField Selection
  • From: koko <email@hidden>
  • Date: Fri, 15 Jun 2012 15:50:01 -0600

On Jun 15, 2012, at 1:41 PM, Kyle Sluder wrote:

> What do you want the trigger to be for selecting all the text? "Whenever the user starts editing my text field, all the text should be selected so they can hit one key to replace it all?"
>
> If that's what you want, I'd just hook up an object as the text field's delegate and implement -controlTextDidBeginEditing: to select all text in the field editor (accessible via the @"NSFieldEditor" key of the notification's user info dictionary).


Just what I was looking for!

-koko
_______________________________________________

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 Selection (From: koko <email@hidden>)
 >Re: NSTextField Selection (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTextField Selection
  • Next by Date: Re: NSTextField Selection
  • Previous by thread: Re: NSTextField Selection
  • Next by thread: Re: NSTextField Selection
  • Index(es):
    • Date
    • Thread