Re: scrolling and drawing porblems
Re: scrolling and drawing porblems
- Subject: Re: scrolling and drawing porblems
- From: Erik Buck <email@hidden>
- Date: Mon, 6 Nov 2006 15:53:48 -0800 (PST)
Here are a bunch of ideas in roughly decreasing order of sensibility:
1) Try turning off copies on scroll behavior:
setCopiesOnScroll: Controls whether the receiver copies rendered images while scrolling.
- (void)setCopiesOnScroll:(BOOL)flag
Discussion If flag is YES, the receiver copies the existing rendered image to its new location while scrolling and only draws exposed portions of its document view. If flag is NO, the receiver always forces its document view to draw itself on scrolling.
Availability
Available in Mac OS X v10.0 and later.
See Also
copiesOnScroll
2) You can also send your view a -setNeedsDisplay: message and the whole visible rect will be marked as needing redisplay.
3) You can also draw your immovable graphics as part of the clip view or part of the enclosing scroll view instead of part of the scrollview's document view. Think about the way the scrollview draws rulers. You can do that too via overriding the -tile method.
4) You can also draw your immovable graphics in a transparent child window overlaying the scroll view.
5) You could use a subview of your scrollview's document view to draw the immovable graphics. Then whenever the document view's visible rect changes, reposition the subview which will cause a redraw when appropriate.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden