I have an app that shows "chapters and pages" in an NSOutlineView
.
To make it clear to the user that "chapters" can contain "pages", I'd like the outline view to always show the disclosure triangle for chapters, even if they have no pages in them (i.e. are empty).
Here's an example:
Note how the first chapter is empty (no pages) and has no disclosure triangle.
I'd like the triangle to show up so that when users click on it, they realize that this is a "container" item that can contain other items.
I tried implementing various delegate methods, but could not get the disclosure triangle to show for empty entries.
Sample project: https://www.dropbox.com/s/fdggjod78t0isjr/OutlineViewTest.zip?dl=0