---------- Forwarded message ----------
Date: 2006-04-30 08:00:02 -0600
From: Ludovic Marcotte <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> wrote:

---------- Forwarded message ----------
Date: 2006-04-26 14:55:04 -0600
 From: Ludovic Marcotte <[EMAIL PROTECTED]>
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




_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to