On 13 Jan 2010, at 12:32 PM, David Blanton wrote: > I set the knob position of the horz and vert scrollers as follows: > > - (void)centerScrollers { > > [m_hScroller setDoubleValue:0.5]; > [m_vScroller setDoubleValue:0.5]; > > } > > Then when I move either knob with the mouse the other knob moves as well by > some random amount.
I think programmatically hauling the NSScrollers around just puts the UI out of sync with the actual position of the scroll view. If you want to make a certain part of a view visible inside an NSScrollView, send scrollRectToVisible: to that view. See also the cousin scroll... methods of NSView. — F _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com