Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
On Sun, Aug 10, 2008 at 7:29 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > Thanks a lot, works perfectly! No problem, but please do file an enhancement request (http://bugreport.apple.com) so that this becomes part of the standard NSOutlineView API. It's one of the few (if not the only) things lacking in a full source list implementation. It'll probably be marked as a duplicate, but the engineers can best gauge the demand for a feature by how many enhancement requests are filed against it. --Kyle Sluder ___ 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]
Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
On Aug 10, 2008, at 4:27 PM, Kyle Sluder wrote: 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. Thanks a lot, works perfectly! Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ 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]
Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
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 (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]
Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
Hi List, 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. I thought it might be possible by returning NO for the - shouldCollapseItem: and -shouldExpandItem: delegate methods for the group item in question but that doesn't do have that effect. It makes the item non-expandable/non-collapsable but it still shows its disclosure triangle. I also set the datasource (the outline is bound) and implemented the datasource method - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable: (id)item but that never gets called. Any ideas on how to make the disclosure triangle disappear for a specific item? Is this only possible in data source driven outline views? Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ 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]