• 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: "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

  • Follow-Ups:
    • Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
      • From: Marco Masser <email@hidden>
References: 
 >Drawing glitches in NSTableView with variable row hight (just like Console.app) (From: Marco Masser <email@hidden>)

  • Prev by Date: Custom progress bar for QTMovie??
  • Next by Date: Re: Questions about 2D drawing in Cocoa
  • Previous by thread: Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
  • Next by thread: Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)
  • Index(es):
    • Date
    • Thread