Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-05-05 Thread Marco Masser
On 28.04.2010, at 12:45, Marco Masser wrote: 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,

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-28 Thread Marco Masser
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

Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Marco Masser
Hi, 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

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Jerry Krinock
On 2010 Apr 19, at 08:56, Marco Masser wrote: I'm trying to implement a logging facility for an app ..., i.e. an NSTableView with varying row heights. I found three different approaches to calculating the height for a given width, but they all seem to be very performance-hungry: 1) (my

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Jens Alfke
On 2010 Apr 19, at 08:56, Marco Masser wrote: I'm trying to implement a logging facility for an app ..., i.e. an NSTableView with varying row heights. I found three different approaches to calculating the height for a given width, but they all seem to be very performance-hungry: 1) (my

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Jerry Krinock
On 2010 Apr 20, at 17:03, Jens Alfke wrote: I wouldn't do it this way (and I speak from past experience, having tried to do this once). You're using NSTableView for something it's not good at — updating layout on the fly as the width changes OK, the -tableView:heightOfRow: delegate method

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Adam R. Maxwell
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