bugGNUstep - Bugs: bug #9426, NSTableView redraw error

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9426: NSTableView redraw error

Submitted by:  Rob Burns <rburns>
Submitted on:  Tue 22 Jun 2004 10:13:01 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: Change RequestStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

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>
Project 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

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

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 25 Jun 2004 07:38:39 PM UTCFredKieferOpen/ClosedAnalyzed=>Closed
Thu 24 Jun 2004 10:34:32 PM UTCFredKieferOpen/ClosedOpen=>Analyzed

Back to the top


Powered by Savane 3.1-cleanup1