• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: including a cocoa bundle in a carbon app
  • Next by Date: Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
  • Previous by thread: Re: CGPDF - Setting /Rotation
  • Next by thread: Re: Hiding the disclosure triangle of a specific group item in a bound NSOutlineView
  • Index(es):
    • Date
    • Thread