scrollRangeToVisible is slowing me down
scrollRangeToVisible is slowing me down
- Subject: scrollRangeToVisible is slowing me down
- From: Adam <email@hidden>
- Date: Wed, 23 Feb 2005 01:42:41 -0500
I have an NSTextView acting as a log. While the app is running it is
constantly writing lines of text to the NSTextView. During times of
heavy traffic the APP lags. I have noticed that one of the biggest
overheads is the scrollRangeToVisible method. Without this method the
text is added to the end of the NSTextView and the user must scroll
down after each line is written. How can I keep the most recently
updated area visible to my user without taking a performance hit.
r = NSMakeRange([[terminalDisplayTextView string]
length],[[terminalDisplayTextView string] length]);
[terminalDisplayTextView scrollRangeToVisible:r];
Thanks,
Adam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden