bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView bugs on Windows. (was: GNUMail/Pantomime on Windows (fwd


From: Adam Fedor
Subject: Re: NSTableView bugs on Windows. (was: GNUMail/Pantomime on Windows (fwd))
Date: Sun, 30 Apr 2006 22:24:50 -0600

---------- Forwarded message ----------
Date: 2006-04-30 08:00:02 -0600
From: Ludovic Marcotte <ludovic@Sophos.ca>
Subject: NSTableView issue on MinGW

Hi Adam,

The issue was caused by the following code in GNUMail:

  aSize = [[NSFont seenMessageFont] maximumAdvancement];
  [dataView setRowHeight: aSize.height];

The height is always equal to zero when using the winlib/win32 backend. This code is used to adjust the height of the table view rows based on which font is being used.



On 2006-04-26 16:09:00 -0600 Adam Fedor <fedor@doc.com> wrote:

---------- Forwarded message ----------
Date: 2006-04-26 14:55:04 -0600
 From: Ludovic Marcotte <ludovic@Sophos.ca>
Subject: Re: [Gnumail-dev] GNUMail/Pantomime on Windows

Hi Adam,

Awesome. Congradulations! What issues did you fix in GNUstep? Do you have patches?

Well.. for some reasons, in NSTableView: -drawRect: we have:

  if (startingRow == -1)
    {
      startingRow = 0;
    }
  if (endingRow == -1)
    {
      endingRow = _numberOfRows - 1;
    }

starting row is always equal to -2^31 and this loops (if checks are made in the delegate to not obtain rows out of bounds) nearly endlessly.

I've changed those to < 0 instead of == -1. It works but the NSTableView displays no rows.

Look at the latest screenshot:

http://sophos.ca/~ludovic/gnumail_win6.png

Everything works.. even SSL and all bundles! It's just the NSTableView that gives me issues and I've investigated just a little bit so far but you might have ideas on the problem.

Ludo






reply via email to

[Prev in Thread] Current Thread [Next in Thread]