FROM : William Turner
DATE : Wed Aug 17 20:55:35 2005
Ah, that makes sense - thanks for the explanation.
On Aug 17, 2005, at 2:20 PM, Troy Stephens wrote:
> On Aug 17, 2005, at 8:55 AM, William Turner wrote:
>
>> Thanks Jesse - that was it! I floor'd all the elements of the
>> frame and the problem is gone. Nifty. Do you - or does anyone -
>> know why that has to be? Just curious.
>>
>
> Scrolling normally performs a bitmap-copy of the existing ClipView
> contents, so that the document view will only need to be asked to
> draw the newly revealed portion of its content. For this
> optimization to work correctly, the ClipView needs to be aligned on
> pixel boundaries. (It's enough to pixel-align the ScrollView; the
> ClipView will follow suit.)
>
> Guaranteeing pixel alignment is generally the best thing to do. As
> an alternative, however, you could also send "setCopiesOnScroll:NO"
> to the ClipView, which disables the bitmap-copy optimization
> (meaning the entire ClipView content will need to be redrawn on
> each scroll step), but will eliminate the blurred drawing.
>
> --
> Troy Stephens
> Cocoa Frameworks
> Apple Computer, Inc.
>
>
>
DATE : Wed Aug 17 20:55:35 2005
Ah, that makes sense - thanks for the explanation.
On Aug 17, 2005, at 2:20 PM, Troy Stephens wrote:
> On Aug 17, 2005, at 8:55 AM, William Turner wrote:
>
>> Thanks Jesse - that was it! I floor'd all the elements of the
>> frame and the problem is gone. Nifty. Do you - or does anyone -
>> know why that has to be? Just curious.
>>
>
> Scrolling normally performs a bitmap-copy of the existing ClipView
> contents, so that the document view will only need to be asked to
> draw the newly revealed portion of its content. For this
> optimization to work correctly, the ClipView needs to be aligned on
> pixel boundaries. (It's enough to pixel-align the ScrollView; the
> ClipView will follow suit.)
>
> Guaranteeing pixel alignment is generally the best thing to do. As
> an alternative, however, you could also send "setCopiesOnScroll:NO"
> to the ClipView, which disables the bitmap-copy optimization
> (meaning the entire ClipView content will need to be redrawn on
> each scroll step), but will eliminate the blurred drawing.
>
> --
> Troy Stephens
> Cocoa Frameworks
> Apple Computer, Inc.
>
>
>
| Related mails | Author | Date |
|---|---|---|
| William Turner | Aug 17, 16:29 | |
| Corbin Dunn | Aug 17, 17:34 | |
| Jesse Grosjean | Aug 17, 17:37 | |
| William Turner | Aug 17, 17:55 | |
| Troy Stephens | Aug 17, 20:20 | |
| William Turner | Aug 17, 20:55 | |
| Tim Lucas | Aug 18, 02:15 | |
| Tim Lucas | Aug 18, 04:10 | |
| Uli Kusterer | Aug 18, 21:55 |






Cocoa mail archive

