bugGNUstep - Bugs: bug #25078, NSOutlineView Cocoa incompatibility

 
 

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

bug #25078: NSOutlineView Cocoa incompatibility

Submitted by:  Doug Simons <theeggcamefirst>
Submitted on:  Fri 12 Dec 2008 09:18:36 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: In Test

Sat 13 Dec 2008 12:32:48 AM UTC, comment #2:

Please test it. It should be fixed in SVN now.

Gregory John Casamento <gcasa>
Project AdministratorIn charge of this item.
Fri 12 Dec 2008 09:26:20 PM UTC, comment #1:

Oops, I left out this line in the changed version (should be obvious anyway, but figured I'd mention it):

int num = 0;

Doug Simons <theeggcamefirst>
Fri 12 Dec 2008 09:18:36 PM UTC, original submission:

When loading its data, NSOutlineView was asking for the number of sub-items within each item using outlineView:numberOfChildrenOfItem: -- including for items that aren't expandable. Cocoa first inquires whether the item is expandable using outlineView: isItemExpandable: .

To fix this, I changed the first line of NSOutlineView's method _loadDictionaryStartingWith:atLevel:

from:
num = [_dataSource outlineView: self
numberOfChildrenOfItem: startitem];

to:
if ([_dataSource outlineView: self isItemExpandable: startitem])
num = [_dataSource outlineView: self
numberOfChildrenOfItem: startitem];

That works for my application, making it compatible with Cocoa.

Doug Simons <theeggcamefirst>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gcasa (Posted a comment)
  • -unavailable- added by theeggcamefirst (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 13 Dec 2008 12:32:48 AM UTCgcasaStatusNone=>Fixed
      Assigned toNone=>gcasa
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1