bugGNUstep - Bugs: bug #9402, NSTableView selctedRowEnumerator...

Group
 
 

bug #9402: NSTableView selctedRowEnumerator returns incorrect values

Submitter:  None
Submitted:  Mon 21 Jun 2004 01:16:51 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Change Request Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 27 Mar 2006 12:30:01 PM UTC, comment #4: 

The last outstanding item had also been resolved on the day after the last comment.

Fred Kiefer <FredKiefer>
Group Member
Wed 23 Jun 2004 02:38:03 AM UTC, comment #3: 

I've found another problem with selectedRowEnumerator. If the table is empty it will return a single row. this row being the last row deleted.


Rob Burns <rburns>
Mon 21 Jun 2004 03:44:49 PM UTC, comment #2: 

it works for me now. Thanks!

Rob Burns <rburns>
Mon 21 Jun 2004 09:40:03 AM UTC, comment #1: 

This problem was caused by some incorrect code in NSIndexSet, in the methods indexGreaterThanIndex: and indexGreaterThanOrEqualToIndex: the lines:
   if (++pos >= GSIArrayCount(_array))
    {
      return NSNotFound;
    }
where there incorrectly. Perhaps we should write a few more test cases for this class?

Fred Kiefer <FredKiefer>
Group Member
Mon 21 Jun 2004 01:16:51 AM UTC, original submission:  

if the the selection in an NSTableView is non-contiguous, selectedRowEnumerator will not return all of the selected rows. results vary, depending on the order of selection. There is a small test app here:

http://www.eskimo.com/~pburns/rob/misc/TableTest.tar.gz

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-03-27 FredKiefer Open/ClosedIn Test Closed
2004-06-21 FredKiefer CategoryMakefiles Base/Foundation
    Open/ClosedOpen In Test

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code