• 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
Avoid selection of text in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoid selection of text in NSTextField


  • Subject: Avoid selection of text in NSTextField
  • From: Luc Van Bogaert <email@hidden>
  • Date: Sat, 08 Jan 2011 23:03:58 +0100

Hi,

I'm creating some kind of numerical keypad with several buttons that can be used to "insert" text (eg. a number) into a NSTextField.
When I use such a button, the text gets inserted correctly, but the text in the field is automatically selected. I would like to avoid that, and have the NSTextField display a cursor instead, as if it was being edited manually. Could anyone provide some help on how to so this? Thank you!

--
Luc Van Bogaert
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

  • Follow-Ups:
    • Re: Avoid selection of text in NSTextField
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: CGImageForProposedRect not scaling image
  • Next by Date: NSUndoManager retain/release of arguments - ad infinitum
  • Previous by thread: Re: Locating a contextual menu
  • Next by thread: Re: Avoid selection of text in NSTextField
  • Index(es):
    • Date
    • Thread