RE: NSTableView live resizing glitch
RE: NSTableView live resizing glitch
- Subject: RE: NSTableView live resizing glitch
- From: Ulai Beekam <email@hidden>
- Date: Fri, 13 Mar 2009 08:35:03 +0000
- Importance: Normal
Corbin,
Please take a look at the bug with ID 6677201 and also feel free to check out the email I sent you yesterday. Stay in touch.
Meanwhile, I rather like Chris' approach because it works :)
Thanks,
U
----------------------------------------
> From: email@hidden
> Date: Thu, 12 Mar 2009 16:06:11 -0700
> To: email@hidden
> CC: email@hidden
> Subject: Re: NSTableView live resizing glitch
>
>
> On Mar 12, 2009, at 3:50 PM, Chris Suter wrote:
>
>> Hi Ulai,
>>
>> On Fri, Mar 13, 2009 at 9:33 AM, Ulai Beekam
>> 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
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________
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