Re: Any way to delay drawing after scrolling?
Re: Any way to delay drawing after scrolling?
- Subject: Re: Any way to delay drawing after scrolling?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 05 Aug 2013 10:34:11 -0700
On Mon, Aug 5, 2013, at 10:12 AM, Steve Mills wrote:
> We have a view subclass contained in an NSScrollView. After certain
> operations (such as changing the view scale) we need to change the scroll
> position, which we do via scrollPoint:, which in turn calls display on
> the view instead of setNeedsDisplay:YES (which makes sense for simply
> scroll events which might scroll some pixels and redraw others). We need
> other things to happen after we set the scroll position, and those things
> require a redraw as well. Having it draw twice is certainly not optimal.
> Is there any way to set the scroll position and NOT have it draw
> immediately?
Try turning off copies-on-scroll on your scroll view.
--Kyle Sluder
_______________________________________________
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