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

Group
 
 

bug #9487: NSOutlineView reloadItem generates errors

Submitter:  Rob Burns <rburns>
Submitted:  Tue 29 Jun 2004 03:06:31 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group Member
Fri 02 Jul 2004 07:23:09 PM UTC, comment #3: 

Opened again, due to Robs new failing example

Fred Kiefer <FredKiefer>
Group 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>
Group 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>

 

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

Date Changed by Updated Field Previous Value => Replaced by
2004-09-21 alexm StatusNone Fixed
    Open/ClosedIn Test Closed
2004-07-03 FredKiefer Open/ClosedOpen In Test
2004-07-02 FredKiefer Open/ClosedIn Test Open
2004-07-01 FredKiefer CategoryMakefiles Gui/AppKit
    Open/ClosedOpen In Test

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code