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: "Adam R. Maxwell" <email@hidden>
- Date: Tue, 20 Apr 2010 20:47:41 -0700
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
_______________________________________________
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