Re: Views, scrolling, zoom and detail
Re: Views, scrolling, zoom and detail
- Subject: Re: Views, scrolling, zoom and detail
- From: Allan Odgaard <email@hidden>
- Date: Wed, 12 May 2004 02:08:30 +0200
On 12. May 2004, at 0:46, Andreas Mayer wrote:
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: [...]
Just to clarify: the rectangle received by drawRect: is the union of
the portions marked dirty, which for a scroll view will always be
confined to the visible area.
So the getRectsBeingDrawn:count: optimization is rarely needed for
views like what the OP deals with.
_______________________________________________
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.