• 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: Scrolling NSScrollView by fractional amounts - why would values get rounded?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?


  • Subject: Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
  • From: Graham Cox <email@hidden>
  • Date: Fri, 11 Sep 2009 14:16:48 +1000


On 11/09/2009, at 4:41 AM, Jens Alfke wrote:

This works fine when the new y value is a whole integer, but I'm
seeing some strange behaviour when trying to scroll by fractional
amount (e.g. .25 or .5 of a pixel).

Are you sure you want to scroll by fractional pixels? It will be slower, because the view has to re-render from scratch, instead of letting the video card scroll the pixels.

Is one set to copy on scroll and the other not?

But yes, it's a bad idea, IMO.

--Graham


_______________________________________________

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


  • Follow-Ups:
    • Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
      • From: Martin Redington <email@hidden>
References: 
 >Scrolling NSScrollView by fractional amounts - why would values get rounded? (From: Martin Redington <email@hidden>)
 >Re: Scrolling NSScrollView by fractional amounts - why would values get rounded? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Is Core Data appropriate to my task?
  • Next by Date: Re: XC & IB 3.2 overlapping siblings
  • Previous by thread: Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
  • Next by thread: Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
  • Index(es):
    • Date
    • Thread