I have an outline view where I don't want to indent the top couple levels (they have a distinctive appearance anyway), but I do want to indent subsequent levels. How can I do this?
I've tried overriding -levelForRow:
and -levelForItem:
to subtract 2 from the return values, but this didn't help. I also tried overriding -frameOfOutlineCellAtRow:
to subtract 2 * indentationPerLevel from the frame's width, but that didn't help either, possibly because I'm not showing disclosure triangles. Any thoughts about how I can fix this issue?
The outline view is bound to an NSTreeController
, which makes it difficult to flatten the underlying data structure, but I do have an outline view delegate set up.