Re: Views, scrolling, zoom and detail
Re: Views, scrolling, zoom and detail
- Subject: Re: Views, scrolling, zoom and detail
- From: Andreas Mayer <email@hidden>
- Date: Wed, 12 May 2004 00:46:32 +0200
Am 11.05.2004 um 22:51 schrieb Hamish Allan:
Should I keep the view in its scrollpane, and have its drawRect method
query the scrollbar and draw whatever is "onscreen"? Or does anyone
have any alternative suggestions?
Yes. Draw only what is needed by using getRectsBeingDrawn:count: (10.3
and later). See
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/
Tasks/OptimizingDrawing.html
But it's not feasible to use an NSBezierRect that way,
I'd try to just draw vertical lines using NSRectFill(). Or ask in
quartz-dev if there's some faster way. :)
Andreas
_______________________________________________
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.