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 (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