• 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: Faster Scroller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster Scroller


  • Subject: Re: Faster Scroller
  • From: Brian Webster <email@hidden>
  • Date: Thu, 23 Jan 2003 10:44:55 -0600

On Thursday, January 23, 2003, at 10:27 AM, email@hidden wrote:

Hello,
someone could tell me how can I make the scrolling system of my NSView
faster?
My project can be downloaded here:
http://www.torellasoft.com/download/progetto.sit


When the drawRect: method gets called on your view, the rectangle that gets passed in tells you what portion of the view actually needs to be redrawn. Currently, you are ignoring this parameter and redrawing everything in your view (even the stuff that is not visible) each time drawRect: is called. To speed up your drawing, you should look at that rectangle parameter and only draw the portion of your view that lies within that rectangle.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Compare text / diff tools with Cocoa?
      • From: Arthur Clemens <email@hidden>
  • Prev by Date: Re: Green, Yellow and Red glob window buttons
  • Next by Date: Scrolling problem...
  • Previous by thread: Re: Faster Scroller
  • Next by thread: Compare text / diff tools with Cocoa?
  • Index(es):
    • Date
    • Thread