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: Marc Respass <email@hidden>
- Date: Fri, 19 Sep 2008 13:27:52 -0400
Corbin, thank you very much. That did the trick! I did read the docs,
just not those docs. I'll pay more attention to the release notes in
the future :)
Thanks again
Marc
On Sep 19, 2008, at 11:07 AM, Corbin Dunn wrote:
On Sep 19, 2008, at 7:58 AM, 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.
Yes -- it is because you are using bindings.
Any tips on how to hide the disclosure triangle but still allow
children?
Yes! it's very easy.
Here's a good section to read:
http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSTableView
And the part you want:
To not show a disclosure triangle, override -
frameOfOutlineCellAtRow: and return an empty rect.
corbin
_______________________________________________
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