Re: scrolling and drawing porblems
Re: scrolling and drawing porblems
- Subject: Re: scrolling and drawing porblems
- From: Ivan Kourtev <email@hidden>
- Date: Mon, 6 Nov 2006 21:56:22 -0500
On Nov 6, 2006, at 6:53 PM, Erik Buck wrote:
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
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.
# (1) above easily did what I needed, although in the process of
thinking about it I had already started thinking about going the way
of (3).
Right now I simply drop my custom view inside a scrollview using IB.
If I want to subclass the clip view, is it enough to create the
subclass and then invoke setContentView for the scroll view?
I have never used overriding [NSScrollView tile] so let me guess how
it would work:
@implementation MyScrollView
.
.
- (void)tile {
// do my own object drawing
[super tile];
}
.
.
@end
Does this make sense?
-- ivan
_______________________________________________
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