Re: How to hide disclosure triangle in NSOutlineView [10.5]?
Re: How to hide disclosure triangle in NSOutlineView [10.5]?
- Subject: Re: How to hide disclosure triangle in NSOutlineView [10.5]?
- From: chaitanya pandit <email@hidden>
- Date: Fri, 19 Sep 2008 22:36:00 +0530
What you can do is create an image which has nothing i.e is
transparent and use the following method to set it as the image of
disclosure triangle
- (void)outlineView:(NSOutlineView *)outlineView
willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn
*)tableColumn item:(id)item
{
[cell setImage:[NSImage imageNamed:@"myBlankImage.png"]];
}
hth,
Chaitanya
On 19-Sep-08, at 8:28 PM, Marc Respass wrote:
Hi All,
I have an outline view connected to a tree controller and I want to
hide the disclosure triangle. I know that there is a data source
delegate method, - (BOOL)outlineView:(NSOutlineView *)outlineView
isItemExpandable:(id)item, but when I make my controller the data
source of the outline view and implement that method, it is never
called. I am running in Leopard and I suspect that because I'm using
bindings that the tree controller is the data source.
Any tips on how to hide the disclosure triangle but still allow
children?
Thanks a lot
Marc
_______________________________________________
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
_______________________________________________
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