Re: NSTableView blurry contents
Re: NSTableView blurry contents
- Subject: Re: NSTableView blurry contents
- From: Troy Stephens <email@hidden>
- Date: Wed, 17 Aug 2005 11:20:07 -0700
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.
_______________________________________________
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