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

Scrolling in TextView


  • Subject: Scrolling in TextView
  • From: Paul G <email@hidden>
  • Date: Mon, 8 Nov 2010 16:22:28 +1000

I have this and I copied it from Shane's example in Chapter 18 of his book.
Forgive me if I get the terminology wrong.
I believe textStorage is being counted. And I think if i'm not wrong textStorage is a object?
So can I instead count the textView and what is already displayed on it?

Basicly I want to make this textView automatically scroll down as new lines are added:

Code below:

on debugLog(theInput)
        set AppleScript's text item delimiters to return
        set debugList to debugList & theInput & "---"
       
        debugView's setString_(debugList as string)
       
        set newTextLength to debugView's textViews's |length|() as integer

        tell debugView to scrollRangeToVisible_({|location|:newTextLength, |length|:0})
        tell debugView to setSelectedRange_({|location|:newTextLength, |length|:0})

        set AppleScript's text item delimiters to ""
 
end debugLog


Thanks.
--
--
Regards,

Paul G
 Professional Services Technician

 Apple Certified Desktop Technician
 Apple Certified Portable Technician
 Apple Certified Macintosh Technician
 Apple Certified Help Desk Specialist
 Apple Certified Technical Co-Ordinator
 Apple Product Professional (2008)

Paul Grice | Macintosh Specialist / Design & Development Officer

Operational Development | Information Management Services 
Corporate and Professional Services
Department of Education & Training
Floor 11 | Education House | 30 Mary Street | Brisbane Qld 4000

T 3405 3814 | M 0402 643 758 | E email@hidden
http://deta.qld.gov.au/

Our Vision | a clever, skilled and creative Queensland
Please consider the environment before printing this email
 _______________________________________________
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

  • Follow-Ups:
    • Re: Scrolling in TextView
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: updating tableview
  • Next by Date: Re: Scrolling in TextView
  • Previous by thread: Re: updating tableview
  • Next by thread: Re: Scrolling in TextView
  • Index(es):
    • Date
    • Thread