On Sun, Aug 10, 2008 at 7:13 PM, Markus Spoettl <[EMAIL PROTECTED]> 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 protected]) 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]
