• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Drawing glitches in NSTableView with variable row hight (just like Console.app) (From: Marco Masser <email@hidden>)
 >Re: Drawing glitches in NSTableView with variable row hight (just like Console.app) (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: NSKeyedArchiver and NSPoints
  • Next by Date: Re: NSKeyedArchiver and NSPoints
  • Previous by thread: Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
  • Next by thread: OpenGL Shading Issues on PPC
  • Index(es):
    • Date
    • Thread