• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem scrolling a clip view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problem scrolling a clip view (From: email@hidden)

  • Prev by Date: Re: Problem scrolling a clip view
  • Next by Date: Encoding infinite loops
  • Previous by thread: Problem scrolling a clip view
  • Next by thread: Using transformed value for sorting table column
  • Index(es):
    • Date
    • Thread