0

I have a NSOutlive view that I would like to remove the toggle from some rows. The Zones and Assets rows are group items (header rows) and should not be collapsable. The problem is that is I answer NO to - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item for these items, the toggles do go away, but then I can't programmatically expand then either.

Is there any way to remove the toggle from specific rows?

Example

Justin808
  • 20,859
  • 46
  • 160
  • 265
  • Maybe this helps you, not sure if its the same problem: https://devforums.apple.com/message/643148#643148 – JustSid May 01 '12 at 19:23
  • @JustSid - write that up as an answer and I'll mark it correct. specifically `-outlineView:shouldShowOutlineCellForItem:` – Justin808 May 01 '12 at 19:29

1 Answers1

2

This apparently is by design and expected behavior (don't ask why, I have no idea). See also this thread in the developer forums: https://devforums.apple.com/message/643148#643148

The problem seems to appear when you turn of the outline cells by returning NO in outlineView:shouldShowOutlineCellForItem:.

JustSid
  • 25,168
  • 7
  • 79
  • 97