Re: Scrolling a NSScrollView by code
Re: Scrolling a NSScrollView by code
- Subject: Re: Scrolling a NSScrollView by code
- From: Jeffrey Mattox <email@hidden>
- Date: Thu, 27 Mar 2003 17:19:16 -0600
I asked this exact same question just a few days ago. Here's the solution:
theClipView = [yourScrollView contentView]; // this line untested
[theClipView scrollToPoint:NSMakePoint(100.0, 200.0)]; // scroll
And you might want to do this to get the scrollbars to move, too:
[theScrollview reflectScrolledClipView:theClipView]; // adjust bars
We need an FAQ list.
Jeff
At 10:57 PM +0100 3/27/03, Giovanni Donelli wrote:
Hello powerful guys :)
I have a problem:
I want to tell to a NSScrollView object to scroll to a point I
want... I haven't found any method to do this... but there must be a
way! any advice?
I want to moke the effect of the vertical or orizontal bar
thanks for your help!
Giovanni
_______________________________________________
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.