• 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: NS*View and Scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NS*View and Scrolling


  • Subject: Re: NS*View and Scrolling
  • From: Public Look <email@hidden>
  • Date: Fri, 23 Jul 2004 11:07:08 -0400

See http://cocoa.mamasam.com/MACOSXDEV/2003/04/2/62126.php

There are several other posts about this in the same archived thread and others. I almost think this is a FAQ.

On Jul 23, 2004, at 6:50 AM, Rick Bischoff wrote:

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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: NS*View and Scrolling
      • From: Rick Bischoff <email@hidden>
References: 
 >NS*View and Scrolling (From: Rick Bischoff <email@hidden>)

  • Prev by Date: Re: Why can't I do commit inside Xcode?
  • Next by Date: Re: Problems with performSelector:withObject:afterDelay:
  • Previous by thread: NS*View and Scrolling
  • Next by thread: Re: NS*View and Scrolling
  • Index(es):
    • Date
    • Thread