Re: NSScrollerView Problem
Re: NSScrollerView Problem
- Subject: Re: NSScrollerView Problem
- From: Erik Buck <email@hidden>
- Date: Tue, 28 Aug 2007 10:45:30 -0700 (PDT)
Ask yourself what those buttons on the scroll bar do? They scroll line by line or page by page. Now ask yourself, how does the framework know how far to scroll in order to scroll line by line ? Is it possible that you have set the verticalLineScroll to zero or allowed it to remain zero ? http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSScrollView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSScrollView/lineScroll lineScroll Returns the vertical line scroll amount: the amount by which the receiver scrolls itself vertically when scrolling line by line, expressed in the content views coordinate system.
- (float)lineScroll
Discussion This amount is used when the user clicks the scroll arrows on the vertical scroll bar without holding down a modifier key. As part of its implementation, this method calls verticalLineScroll.
Note that a scroll view can have two different line scroll amounts: verticalLineScroll and horizontalLineScroll. Use this method only if you can be sure theyre both the same; for example, you always use setLineScroll:, which sets both amounts to the same value.
Availability
Available in Mac OS X v10.0 and later.
See Also
setLineScroll:
verticalPageScroll
horizontalPageScroll
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden