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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/chaitanya%40expersis.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to