• 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: [Q] How can one programatically begin a text editing session in a NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] How can one programatically begin a text editing session in a NSTextField?


  • Subject: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
  • From: Eric Gorr <email@hidden>
  • Date: Thu, 5 Feb 2009 12:39:28 -0500


On Feb 5, 2009, at 12:33 PM, Andy Lee wrote:

On Feb 5, 2009, at 12:17 PM, Eric Gorr wrote:
I wasn't sure what _textField2 was supposed to refer to exactly,

Oops, copy-paste error. :)

so I tried this instead:

[[textField currentEditor] setSelectedRange:NSMakeRange(0, 0)];

Bah, currentEditor is what I was trying to remember.

:-)

So, if you know of an easy way to determine the location in the string of a NSTextField where a click occurred, I am interested.

Or a better way, which works around this whole mess, to accomplish what I described in:

http://lists.apple.com/archives/cocoa-dev/2009/Feb/msg00341.html

I would be interested in that as well.

_______________________________________________

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: [Q] How can one programatically begin a text editing session in a NSTextField?
      • From: Michael Ash <email@hidden>
    • Re: [Q] How can one programatically begin a text editing session in a NSTextField?
      • From: Eric Gorr <email@hidden>
References: 
 >Re: [Q] How can one programatically begin a text editing session in a NSTextField? (From: Eric Gorr <email@hidden>)
 >Re: [Q] How can one programatically begin a text editing session in a NSTextField? (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Encoding to use for file names
  • Next by Date: Re: Encoding to use for file names
  • Previous by thread: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
  • Next by thread: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
  • Index(es):
    • Date
    • Thread