Re: scrolling and drawing porblems
Re: scrolling and drawing porblems
- Subject: Re: scrolling and drawing porblems
- From: m <email@hidden>
- Date: Mon, 6 Nov 2006 19:39:02 -0800
- Resent-date: Mon, 6 Nov 2006 19:39:18 -0800
- Resent-from: m <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa Dev <email@hidden>
On Nov 6, 2006, at 6:56 PM, Ivan Kourtev wrote:
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?
You shouldn't need to subclass the clip view at all. Just disable
copiesOnScroll from your custom view.
_murat
_______________________________________________
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