Re: Problem scrolling a clip view
Re: Problem scrolling a clip view
- Subject: Re: Problem scrolling a clip view
- From: "I. Savant" <email@hidden>
- Date: Mon, 21 May 2007 10:03:22 -0400
On 5/21/07, email@hidden <email@hidden> wrote:
I'd like to programmatically scroll my clip view in a smooth fashion.
So I tried with the code below. It works, but the clip view is not
updated until the loop finishes, eg. the whole thing equals a 100
pixel jump without scroll. I cannot see any logical reason for this.
Typically, the user decides in their preferences whether or not they
want smooth scrolling. If, however, you're determined to do this, the
problem is you're in a tight loop, which means you're not giving the
runloop time to trigger redrawing.
As a work-around, try calling -display from inside your loop.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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