Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
- Subject: Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
- From: Marco Masser <email@hidden>
- Date: Wed, 28 Apr 2010 12:45:45 +0200
On 21.04.2010, at 05:47, Adam R. Maxwell wrote:
>
> On Apr 19, 2010, at 8:56 AM, Marco Masser wrote:
>
>> I'm trying to implement a logging facility for an app that should behave quite the same as OS X's Console.app in terms of displaying the log, i.e. an NSTableView with varying row heights. I got it working so far, but there are major drawing glitches when resizing the window or scrolling through the list.
>
> I did this a while ago, and it's working fine. I recall having numerous problems with drawing glitches, but don't remember the details. My code is BSD licensed, and found here:
>
> http://code.google.com/p/mactlmgr/source/browse/trunk/TLMLogDataSource.m
>
> The key point to fix problems during resize was implementing tableViewColumnDidResize: to invalidate row heights, and caching row heights for performance. I think the TLMLogMessageCell subclass was used to get wrapping behavior similar to that of Apple's Console program.
>
> hth,
> Adam
>
Sorry for my late answer!
Thanks a lot to all three of you, Jerry, Jens, and Adam.
I can't test your suggestions right now, but I definitely will. If I won't get satisfactory results with Adam's hint, I think I'll opt for the NSTextView. Anyway, I'll let you know how it worked.
Cheers,
Marco_______________________________________________
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