Setting a NSScrollView's Scroll Amount
Setting a NSScrollView's Scroll Amount
- Subject: Setting a NSScrollView's Scroll Amount
- From: Dave Keck <email@hidden>
- Date: Sun, 28 Mar 2004 23:43:51 -0500
Greetings,
I have a NSScrollView that contains a whole bunch of views that are the
same size and are arranged vertically, to form a list-like structure.
Right now, using setVerticalLineScroll: I'm restricting scrolling to 10
pixels every time the user clicks the up or down arrow in the scroll
view. But the problem with this is, if the user uses the knob in the
scroller (the big blue blob thing) to scroll, instead of the arrows at
the bottom of the scroller, the NSScrollView doesn't restrict scrolling
to 10 pixels, but rather, scrolls 1 pixel at a time, regardless of what
I've set using setVerticalLineScroll:.
Is there a way to restrict the scrolling increment of a NSScrollView -
when using the knob rather than the arrows - to a specified amount? (By
the way, iTunes does this when scrolling through songs using the knob,
but it uses a list view rather than a scroll view, so I'm not sure if
that means much...)
Thanks very much for any insight!
Dave
_______________________________________________
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.