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
Priority:  5 - Normal Item Group:  Change Request
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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 ... leTest-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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

History

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.16-2753.
Corresponding source code