Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrolling and drawing porblems




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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.