Re: Automatically scrolling to the bottom
Re: Automatically scrolling to the bottom
- Subject: Re: Automatically scrolling to the bottom
- From: Kyle Mandli <email@hidden>
- Date: Mon, 6 Aug 2001 11:33:44 -0500
Try -(void)scrollToPoint:(NSPoint)newOrigin will do what you want. It
is found in NSClipView. I am not completely sure how you could
implement this into a scrollview, I have only used it on a NSOutlineView
but I am pretty sure that it should have the same functionality.
Kyle
On Monday, August 6, 2001, at 10:43 AM, Christian Mike wrote:
>
I have an NSScrollView that functions as a log window. As text enters
>
this
>
window, I see the vertical scroll bar appear, just as I'd expect, and
>
the
>
scroll button size shrinks to reflect the proportion of text visible
>
versus
>
the amount available. This part all works fine. However, I have found
>
that
>
the NSScrollView does not automatically scroll so that the "latest"
>
stuff at
>
the bottom of the window is visible. It only displays the oldest stuff
>
at
>
the top.
>
>
How do I programmatically move a scroll view to the bottom? I am always
>
programmatically placing the insert point cursor at the bottom so that
>
new
>
stuff comes out appended to the bottom, if that helps any.
>
>
Thanks.
>
>
Michael Christian
>
Thomson multimedia Inc.
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev