I am using this method to hide the disclosure triangle, in nonexpandable items in an NSOutlineView:
it does what i want, but slows the OutlineView down to a crawl. Is there a better way to implement this?
I only want a disclosure triangle shown for expandable items... not every item in my OutlineView.
thanks in advance
<edit>Should mention, I am using NSTreeController for the Datasource</edit>
Code:
- (void)outlineView:(NSOutlineView *)theOutlineView willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
{
if ([item count] == 0)
[cell setTransparent:YES];
else
[cell setTransparent:NO];
}
it does what i want, but slows the OutlineView down to a crawl. Is there a better way to implement this?
I only want a disclosure triangle shown for expandable items... not every item in my OutlineView.
thanks in advance
<edit>Should mention, I am using NSTreeController for the Datasource</edit>