Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Jan 6, 2009, at 11:44 AM, Corbin Dunn wrote: The latest problem I am having with this is that an NSOutlineView will not fully draw itself properly if the height of a row changes at the window it is on is being resized. Override -drawRect: in a subclass of NSOutlineView and just call [supe

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Corbin Dunn
The latest problem I am having with this is that an NSOutlineView will not fully draw itself properly if the height of a row changes at the window it is on is being resized. Override -drawRect: in a subclass of NSOutlineView and just call [super drawRect:] -- live resize caching is confli

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Jan 5, 2009, at 12:59 PM, Eric Gorr wrote: On Jan 5, 2009, at 12:37 PM, Corbin Dunn wrote: On Jan 5, 2009, at 8:56 AM, Eric Gorr wrote: On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the heig

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Jan 5, 2009, at 12:37 PM, Corbin Dunn wrote: On Jan 5, 2009, at 8:56 AM, Eric Gorr wrote: On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the height on the width. For that, you want to use -ce

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Corbin Dunn
On Jan 5, 2009, at 8:56 AM, Eric Gorr wrote: On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the height on the width. For that, you want to use -cellSizeForBounds: -- pass in a large height, but a

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the height on the width. For that, you want to use -cellSizeForBounds: -- pass in a large height, but a constrained width. Use a width that is equal to

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: For that, you want to use -cellSizeForBounds: -- pass in a large height, but a constrained width. Use a width that is equal to the [tableColumn width] minus indentation * (level + 1) although, the actual value that outlineview uses for

Re: Determining width of a cell in an NSOutlineView

2008-12-19 Thread Corbin Dunn
On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: On Dec 19, 2008, at 5:20 PM, Corbin Dunn wrote: On Dec 19, 2008, at 1:35 PM, Eric Gorr wrote: I only have a single column in my NSOutlineView. The outline view looks like: > Collapsible Row 1 Item 1 > Collapsible Row 2 Item 2 I need the

Re: Determining width of a cell in an NSOutlineView

2008-12-19 Thread Eric Gorr
On Dec 19, 2008, at 5:20 PM, Corbin Dunn wrote: On Dec 19, 2008, at 1:35 PM, Eric Gorr wrote: I only have a single column in my NSOutlineView. The outline view looks like: > Collapsible Row 1 Item 1 > Collapsible Row 2 Item 2 I need the height of a row an of an item displayed when th

Re: Determining width of a cell in an NSOutlineView

2008-12-19 Thread Corbin Dunn
On Dec 19, 2008, at 1:35 PM, Eric Gorr wrote: I only have a single column in my NSOutlineView. The outline view looks like: > Collapsible Row 1 Item 1 > Collapsible Row 2 Item 2 I need the height of a row an of an item displayed when the disclosure triangle is clicked to be based on

Determining width of a cell in an NSOutlineView

2008-12-19 Thread Eric Gorr
I only have a single column in my NSOutlineView. The outline view looks like: > Collapsible Row 1 Item 1 > Collapsible Row 2 Item 2 I need the height of a row an of an item displayed when the disclosure triangle is clicked to be based on the width of the cell. I can get the indenta