On Jan 25, 2017, at 14:13 , Tae Won Ha <taewon...@me.com> wrote: > > What I expected was that the red box at the bottom left corner gets > 'copied' to the point (100, 100) when I invoke the triggerScroll action. > However nothing happens. What am I doing wrong?
At the very least, you aren’t doing what the scroll(rect:by:)) method description tells you to do: developer.apple.com/reference/appkit/nsview/1483497-scroll <http://developer.apple.com/reference/appkit/nsview/1483497-scroll> You also need to change the view’s origin to reflect the scroll, and you need to use one of the “needsDisplay” methods to indicate the area(s) invalidated by the scroll. Is there anything to discuss about why you “cannot use” NSScrollView? The existing functionality would make life a lot easier for you. _______________________________________________ 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