Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
- Subject: Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
- From: Mario Kušnjer <email@hidden>
- Date: Thu, 26 Nov 2009 00:40:50 +0100
Hi !
So I have sub classed NSOutlineView and implemented single method like
this:
- (NSRect)frameOfOutlineCellAtRow:(NSInteger)row {
return row == 0 ? NSZeroRect : [super frameOfOutlineCellAtRow:row];
}
That works except the indentation problem is still on.
If root object is empty than it is indented (default in IB is 14), but
when I add child object to it,
root object indentation gets reset to zero (0).
How do I fix that ?
Bye.
Mario Kušnjer
email@hidden
+385957051982
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden