bug-gnustep
[Top][All Lists]
Advanced

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

[bugs #9402] NSTableView selctedRowEnumerator returns incorrect values


From: Fred Kiefer
Subject: [bugs #9402] NSTableView selctedRowEnumerator returns incorrect values
Date: Mon, 21 Jun 2004 05:39:42 -0400
User-agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: GNUstep.

/**************************************************************************/
[bugs #9402] Latest Modifications:

Changes by: 
                Fred Kiefer <FredKiefer@gmx.de>
'Date: 
                Mon 06/21/2004 at 09:40 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
            Category | Makefiles                 | Base/Foundation
              Status | Open                      | In Test


------------------ Additional Follow-up Comments ----------------------------
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?






/**************************************************************************/
[bugs #9402] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9402>
Project: GNUstep
Submitted by: 0
On: Mon 06/21/2004 at 01:16

Category:  Base/Foundation
Severity:  5 - Average
Item Group:  Change Request
Resolution:  None
Assigned to:  None
Status:  In Test


Summary:  NSTableView selctedRowEnumerator returns incorrect values

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

Follow-up Comments
------------------


-------------------------------------------------------
Date: Mon 06/21/2004 at 09:40       By: FredKiefer
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?












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9402>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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