bugGNUstep - Bugs: bug #9487, NSOutlineView reloadItem generates...

 
 

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

bug #9487: NSOutlineView reloadItem generates errors

Submitted by:  Rob Burns <rburns>
Submitted on:  Tue 29 Jun 2004 03:06:31 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Tue 21 Sep 2004 11:13:41 PM UTC, comment #7:

This has been "In test" long enough now. While there may still be issues with NSOutlineView, these two issues seem to be fixed.

Alexander Malmberg <alexm>
Project Member
Sat 03 Jul 2004 07:12:00 PM UTC, comment #6:

now, it does redisplay the item being reloaded, but happens to redispaly all the other items too. This doesn't seem quite right to me. In any case it works for my purposes

Thanks

Rob Burns <rburns>
Sat 03 Jul 2004 05:51:04 PM UTC, comment #5:

now, it does redisplay the item being reloaded, but happens to redispaly all the other items too. This doesn't seem quite right to me. In any case it works for my purposes

Thanks

Rob Burns <rburns>
Sat 03 Jul 2004 04:36:59 PM UTC, comment #4:

The specific problem should be fixed now, but investigation did show loads of issues in the outline view code. We really should try and find somebody to check to whole class.

Fred Kiefer <FredKiefer>
Project Member
Fri 02 Jul 2004 07:23:09 PM UTC, comment #3:

Opened again, due to Robs new failing example

Fred Kiefer <FredKiefer>
Project Member
Thu 01 Jul 2004 11:38:20 PM UTC, comment #2:

Thanks, that indeed fixed the problem I was having. Though, I have found others. I was expecting reloadItem to redisplay the item as well. This doesn't currently happen under GNUstep.

I modified the test a little bit to check for this too. I also got the test running on OSX, and can verify that on OSX, the item is redisplayed. A new one is here:

http://www.eskimo.com/~pburns/rob/misc/Testing-20040701.tar.gz

Also, after playing with the test a bit more I found that if you reproduce the following steps:

1) open the NSOutlineView test
2) expand the 'wet' item
3) select the 'wet' item
4) check the 'Children' checkbox
5) press the 'Reload Selected Item' button

The contents of the OutlineView will disappear

Rob Burns <rburns>
Thu 01 Jul 2004 06:42:24 PM UTC, comment #1:

This problem is caused by the inconsistent use of NSNull in NSOutlineView. The shared null object is used here for the key nil in object mappings, but sometimes when iterating over the keys the reverse conversion is not applied.
I changed that and the code is now working for me.

Fred Kiefer <FredKiefer>
Project Member
Tue 29 Jun 2004 03:06:31 AM UTC, original submission:

NSoutline reloadItem: generates an "NSNull does not respond to setObjectForKey:" error and an "NSInvalidArgumentException: Tried to insert nil to arrray" error most (not all) of the times it is called.

Example code for this can be found at http://www.eskimo.com/~pburns/rob/misc/NSOutlineView-reloadItem.tar.gz
It's a GSTest bundle.

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 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 21 Sep 2004 11:13:41 PM UTCalexmStatusNone=>Fixed
  Open/ClosedIn Test=>Closed
Sat 03 Jul 2004 04:36:59 PM UTCFredKieferOpen/ClosedOpen=>In Test
Fri 02 Jul 2004 07:23:09 PM UTCFredKieferOpen/ClosedIn Test=>Open
Thu 01 Jul 2004 06:42:24 PM UTCFredKieferCategoryMakefiles=>Gui/AppKit
  Open/ClosedOpen=>In Test

Back to the top


Powered by Savane 3.1-cleanup1