• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scrolling and drawing porblems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: scrolling and drawing porblems
      • From: Ivan Kourtev <email@hidden>
    • Re: scrolling and drawing porblems
      • From: Ivan Kourtev <email@hidden>
  • Prev by Date: Re: scrolling and drawing porblems
  • Next by Date: Re: Setting icon with make file
  • Previous by thread: Re: scrolling and drawing porblems
  • Next by thread: Re: scrolling and drawing porblems
  • Index(es):
    • Date
    • Thread