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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden