Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
- Subject: Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
- From: "Kyle Sluder" <email@hidden>
- Date: Sun, 10 Aug 2008 19:27:08 -0400
On Sun, Aug 10, 2008 at 7:13 PM, Markus Spoettl
<email@hidden> wrote:
> I have an NSOutlineView based source list bound to a tree controller and I
> can't figure out how to create a group item that does not have a disclosure
> triangle - as an example, the MAILBOXES folder group in Mail.app does that.
The way to do it right now is to subclass NSOutlineView and override
-frameOfOutlineCellAtRow:.
>From the documentation:
"You can override this method in a subclass to return a custom frame
for the outline button cell. If your override returns an empty rect,
no outline cell is drawn for that row. You might do that, for example,
so that the disclosure triangle will not be shown for a row that
should never be expanded."
Then you'll want to manually expand all of those entries. And then
you'll want to file a bug with Apple to make this part of the
NSOutlineView API.
--Kyle Sluder
_______________________________________________
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