bugGNUstep - Bugs: bug #9426, NSTableView redraw error

Group
 
 

bug #9426: NSTableView redraw error

Submitter:  Rob Burns <rburns>
Submitted:  Tue 22 Jun 2004 10:13:01 PM UTC
   
 
Category:  Gui/AppKit 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 01 Aug 2005 07:35:32 PM UTC, comment #4: 

should this be marked as fixed, just for the sake of being thorough?

Rob Burns <rburns>
Fri 25 Jun 2004 07:38:39 PM UTC, comment #3: 

Fixed by Richards patch on NSIndexSet

Fred Kiefer <FredKiefer>
Group Member
Thu 24 Jun 2004 10:34:32 PM UTC, comment #2: 

The main problem here was an off by one error in the [NSTableView numberOfRowsChanged] code. The last line was never unselected. This has been fixed. There is a remaining problem with the NSMutableIndexSet, which may become corrupted when removing from a more complex set.

Fred Kiefer <FredKiefer>
Group Member
Thu 24 Jun 2004 12:38:31 AM UTC, comment #1: 

I've found that if I add [tableView deselectAll] in before my call to [tableView selectRow: x byExtendingSelction: NO], that this error goes away.

I don't think the call to deselectAll should be neccessary though. shouldn't byExtendingSelection: NO take care of that?

Rob Burns <rburns>
Tue 22 Jun 2004 10:13:01 PM UTC, original submission:  

I think that this happen when it redraws. But, I'm not sure. I have an NSTableView that I can delete things from. after I delete whatever is selected, I select the row that sits below. this works most of the time. But sometimes, usually when deleting multiple selections, I get this error.

NSInternalconsistencyException: RowIndex => _numberOfRows in [NSTableView -rectOfRow:]

I have an example to show the behavior here:

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

I can reproduce the error consistently by openening the app, selecting the last row in the table, and clicking the delete button. It happens other times as well, but not so consistently.

Rob Burns <rburns>

 

(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 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-25 FredKiefer Open/ClosedAnalyzed Closed
2004-06-24 FredKiefer Open/ClosedOpen Analyzed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code