Re: Modifying row rect indent in NSOutlineView

2015-01-29 Thread Quincey Morris
On Jan 29, 2015, at 22:24 , Andrew White wrote: > > The code I've inherited uses this to draw rounded rects on the background of > each row. So if I want to modify the width and position of those rects, I > need to feed information about the item in outlineView:rowViewForItem into > the row v

Re: Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
On 30/01/2015 16:04, Quincey Morris wrote: On Jan 29, 2015, at 20:45 , Andrew White mailto:andrew.wh...@audinate.com>> wrote: I tried subclassing NSOutlineView and catching frameOutlineOfCellAtRow, adding to theRect.origin.x and subtracting from theRect.size.width. This didn't seem to make a d

Re: Modifying row rect indent in NSOutlineView

2015-01-29 Thread Quincey Morris
On Jan 29, 2015, at 20:45 , Andrew White wrote: > > I tried subclassing NSOutlineView and catching frameOutlineOfCellAtRow, > adding to theRect.origin.x and subtracting from theRect.size.width. This > didn't seem to make a difference. I have verified that the overridden > function is being c

Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
I have an NSOutlineView on OS X 10.10. For non-group row, the indent appears to change where each row starts but the rounded rect surrounding each row always starts on the left margin. I want to modify it so that the left edge of the rectangle is indented (at least for certain children). Exi