URL:
<http://savannah.gnu.org/bugs/?25078>
Summary: NSOutlineView Cocoa incompatibility
Project: GNUstep
Submitted by: theeggcamefirst
Submitted on: Fri 12 Dec 2008 09:18:36 PM GMT
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25078>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep