Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
- Subject: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
- From: Markus Spoettl <email@hidden>
- Date: Sun, 10 Aug 2008 16:13:17 -0700
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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