Thanks Jens, Charles! 2015-10-28 6:59 GMT+02:00 Charles Constant <char...@charlesism.com>:
> I don't know if this information can solve your issue directly, but I used > it to fix my issue last week. I have a custom NSScroller that had jerky > scrolling. I didn't realize that views have an ".animator()" proxy that you > can use instead. > > NSAnimationContext.beginGrouping() > NSAnimationContext.currentContext().duration = seconds > > clipview.animator().setBoundsOrigin( clipview_pt ) > > NSAnimationContext.endGrouping() > > Probably common knowledge, but I haven't done heaps of animations in > Cocoa. So, by setting my clipview bounds using the animator it glides to > the correct point. Hope it's relevant for your project. > > > > > > On Tue, Oct 27, 2015 at 9:33 AM, Jens Alfke <j...@mooseyard.com> wrote: > >> I’m guessing they wait for the scrolling to finish [not sure how, maybe >> just polling the scroll position], then use Core Animation to set the >> scroll position to the nearest grid-line. >> >> —Jens >> _______________________________________________ >> >> 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: >> https://lists.apple.com/mailman/options/cocoa-dev/charles%40charlesism.com >> >> This email sent to char...@charlesism.com >> > > _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com