NS*View and Scrolling
NS*View and Scrolling
- Subject: NS*View and Scrolling
- From: Rick Bischoff <email@hidden>
- Date: Fri, 23 Jul 2004 05:50:59 -0500
Hello,
I have two problems in my current app that are very similar.
1. I have an NSTextView that is continuously being updated with data
(think telnet client). When the data comes in, I append it to the text
view and scroll it to visible. This is acceptable behavior IF and
only IF the user is already scrolled all the way to the bottom; How do
I tell if the user has scrolled the view up?
2. I have an NSTableView that is continuously being updated with data
(I have no analogy here, sorry). When new rows are added or delete (in
sorted order, so they could be added above or below), I maintain the
user selected row and scroll it to visible-- this is also acceptable
behavior.. The problem is when the user has a selected row and then
scrolls the table to look at other rows. When data comes in, it
automatically scrolls the table back so his original selected row is
visible.
These are both VERY annoying usability wise. So, is there a way to
tell if
1. In the case of NSTextView, the last text of the view is visible
AND/OR if the scroll bar is not at it's vertical extreme?
2. In the case of NSTableView, the currently selected row is visible?
Thanks,
Rick Bischoff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.