NSOutlineView more space before title

I’m trying to make the left padding of an outlineTableColumn wider than normal due to draw something before the title.

For instance, suppose normal look likes:

▶︎A

▼B

▶︎B-1

▶︎B-2

▶︎C


And what I want to implement is like:


▶︎A

▼B

▶︎B-1

▶︎B-2

▶︎C



Would you tell me how to do this?

I tried making a subclass of NSOutlineView and level(forItem:) and level(forRow:), but both methods didn’t get called.


Thanks,

Norio Ota

The easiest way is to insert another column before the outline column that has the required amount of extra space.

Dear Quincey Morris,

I didn't image that. How flexible!


Thank you very much!

norio ota

NSOutlineView more space before title
 
 
Q