[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #25078] NSOutlineView Cocoa incompatibility
From: |
Doug Simons |
Subject: |
[bug #25078] NSOutlineView Cocoa incompatibility |
Date: |
Fri, 12 Dec 2008 21:18:38 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1 |
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 #25078] NSOutlineView Cocoa incompatibility,
Doug Simons <=