• 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: Need to set cursor at end of text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to set cursor at end of text


  • Subject: Re: Need to set cursor at end of text
  • From: Ron <email@hidden>
  • Date: Mon, 26 Jan 2015 23:46:58 -0600



Brian,
You have to get the field editor for the textfield. You get it from the Window the field is in, and it is an NSText object, which DOES have a setSelectedRange selector.

-- Ron


On Jan 26, 2015, at 10:29 PM, Brian Christmas <email@hidden> wrote:

G’day scripters

This is supposed to be simple, I need to set the cursor to the end of the  text of a field, but the recommended  method is failing, with an ‘Unrecognised selector’ error, on line p=5, sender's setSelectedRange:textRange.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Need to set cursor at end of text (From: Brian Christmas <email@hidden>)
 >Re: Need to set cursor at end of text (From: Ron <email@hidden>)

  • Prev by Date: Re: Need to set cursor at end of text
  • Next by Date: Scriptable application can not return record data
  • Previous by thread: Re: Need to set cursor at end of text
  • Next by thread: Scriptable application can not return record data
  • Index(es):
    • Date
    • Thread