Re: Faster Scroller
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.