Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Autoscrolling an NSTextView

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Can't drag files to Mac Desktop anymore  
Author Message
Ulrich Hobelmann

External


Since: Mar 24, 2005
Posts: 34



(Msg. 1) Posted: Tue Jul 12, 2005 12:55 pm
Post subject: Autoscrolling an NSTextView
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi, I'm appending text to an NSTextView. How can I autoscroll it?

--
By claiming a patent [...], I'm saying that you are not permitted
to use your own knowledge to further your ends. By what right?
Roderick T. Long

 >> Stay informed about: Autoscrolling an NSTextView 
Back to top
Login to vote
Ulrich Hobelmann

External


Since: Mar 24, 2005
Posts: 34



(Msg. 2) Posted: Tue Jul 12, 2005 6:55 pm
Post subject: Re: Autoscrolling an NSTextView [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Doug Brown wrote:
> Use NSText's scrollRangeToVisible: method. Since NSTextView inherits from
> it, it also has this method.
>
> Here's how I scrolled to the end.
>
> [textView scrollRangeToVisible:NSMakeRange([[textView string] length] - 1,
> 0)];

Cool, that works great. Thanks.

--
XML is a prime example of retarded innovation.
-- Erik Meijer and Peter Drayton, Microsoft Corporation

 >> Stay informed about: Autoscrolling an NSTextView 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Why is there no NSTextView -setTextStorage ? - Hallo NG ...or how can I store the total content of a NSTextView in a object ? As NSFileWrapper ? Thank you for your time and help Florian

NSTextView question - Hello NG, is there a way to have graphics allowed in NSTextView and keep the font unchangeable ? If you copy or drag text from a other application or NSTextView it always comes with its font and color. Is there a way to change that without..

NSCursorAttributeName and NSTextView - Well, I've been playing around a little bit with getting URLs in my NSTextView to actually become clickable links. So far, so good. I set the attributes for my attributed strings that get inserted into the text view: NSLinkAttributeName for the link..

delegate or subclass NSTextView? - I can't quite figure out if I should focus on using the delegate methods of a NSTextView or if I should work on subclassing it. What I'd like is to have is a continuously updated "translation" line of text just under the user entered line of te...

NSTextView / HTML question - Hello NG, can somebody tell me what happens by default if I drag some html code into a NSTextView. I guess it is translated into RTF ? Is there a way to access the original html code that was torn into the TextView? Thank you for time and help ..
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]