Re: NSTableView live resizing glitch
Re: NSTableView live resizing glitch
- Subject: Re: NSTableView live resizing glitch
- From: Corbin Dunn <email@hidden>
- Date: Thu, 12 Mar 2009 16:06:11 -0700
On Mar 12, 2009, at 3:50 PM, Chris Suter wrote:
Hi Ulai,
On Fri, Mar 13, 2009 at 9:33 AM, Ulai Beekam
<email@hidden> wrote:
I'm having an NSTableView live resizing glitch that is driving me
nuts. Please see this image:
http://img15.imageshack.us/img15/2012/picture1tcz.png
I really need to have the column width independent of the table
view's size, so it is not an option to have the column resize with
the table.
But here is the strangest thing of all: This glitch appears only
when the table view's focus ring is set to None. The glitch goes
away if the focus ring is set to default!
Any ideas on how to fix this live resizing glitch would be greatly
appreciated.
I've worked around similar issues in some code I wrote. Try
subclassing NSTableView and then in the tile method, after calling
[super tile], do this:
[[self headerView] setNeedsDisplay:YES];
That's doing too much redraw work :) -- you can introduce performance
problems by calling setNeedsDisplay: too often. Please do log bugs
when you run into these issues.
I think there may be an off-by-one issue in the OS that Ulai is using.
I would need a proper bug report with system information to validate
that. If my first suggestion doesn't fix it, then redrawing the last
rect with a setNeedsDisplayInRect: via -tile will work, so your work
around is a good suggestion (with a slight mod to not redraw the whole
thing).
corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden