bug-gnustep
[Top][All Lists]
Advanced

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

Re: bug in NSBrowser ?


From: Adam Fedor
Subject: Re: bug in NSBrowser ?
Date: Sat, 07 Sep 2002 21:29:30 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020610

I tried your example on MacOSX and it didn't work at all (crashed), but after fixing a few things I found that GNUstep's NSBrowser does not really conform to the documentation. I fixed those parts, but I don't think that really helps you any. I think what you were doing before was querying the browser state in the middle of an update which was giving indeterminate results.

The delegate should really be getting a willDisplay message whenever it displays the cells, but that isn't happening now. Also, I found that MacOSX makes a further optimization of only 'loading' cells that are in the visible rect of the scroller. I'm not sure how it does that, but it must be a much tighter integration of Browser/Scroller/Matrix classes.

Yen-Ju Chen wrote:

 Here is the example.
 Simply select the directory and look at the NSLog output.
 First, the lastColumn is not correct if you select column
 which is before the previous selected column.
 Second, print out all the selected cell in each column
 is also incorrect. It will cached previous selected browserCell.

 Hope this help

 Yen-Ju

From: Adam Fedor <fedor@doc.com>
To: Yen-Ju Chen <yjchenx@hotmail.com>
Subject: Re: bug in NSBrowser ?
Date: Thu, 22 Aug 2002 08:22:03 -0600

Yen-Ju Chen wrote:


 Two things I notice when using NSBrowser

 1. The selected cell doesn't deselected properly:
    Select a cell of 1st column, 2nd column will show up.
    Then select a cell of 2nd column, 3rd column will show up.
    Now select a cell of 1st column, the 3rd column will disapper,
    and the cell in 2nd column is deselected.
    Use a loop to search all selected cell from 1st column (index 0)
    to last column ([NSBrowser lastColumn]),
    it shows that the selected cell in 2nd column is not -1,
    but the cell which is selected previous.
    That conflicts with the fact that the 2nd column is now deselected.




--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.





reply via email to

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