Re: Merging scrolling/clipping with NSStackView

2017-01-21 Thread Daryle Walker
> On Jan 19, 2017, at 1:25 PM, Quincey Morris > wrote: > > On Jan 19, 2017, at 06:39 , Daryle Walker > wrote: >> >> The inner views should be as tall as they need to be. > > I don’t understand this part. How tall is that? > > I assume you mean that you want the text

Re: Merging scrolling/clipping with NSStackView

2017-01-20 Thread Jonathan Mitchell
> On 20 Jan 2017, at 21:36, Quincey Morris > wrote: > > On Jan 20, 2017, at 02:47 , Jonathan Mitchell > wrote: >> >> NSTableView might go something like this: >> >> @implementation TSTableView >> >> - (NSSize)intrinsicContentSize >> { >> NSSize size

Re: Merging scrolling/clipping with NSStackView

2017-01-20 Thread Quincey Morris
On Jan 20, 2017, at 02:47 , Jonathan Mitchell wrote: > > NSTableView might go something like this: > > @implementation TSTableView > > - (NSSize)intrinsicContentSize > { > NSSize size = [super intrinsicContentSize]; > NSInteger nr = [self numberOfRows]; > CGFloat

Re: Merging scrolling/clipping with NSStackView

2017-01-20 Thread Jonathan Mitchell
> On 19 Jan 2017, at 18:25, Quincey Morris > wrote: > > On Jan 19, 2017, at 06:39 , Daryle Walker wrote: >> >> The inner views should be as tall as they need to be. > > I don’t understand this part. How tall is that? > > I assume you mean that you want the text and table views to be tall en

Re: Merging scrolling/clipping with NSStackView

2017-01-19 Thread Quincey Morris
On Jan 19, 2017, at 06:39 , Daryle Walker wrote: > > The inner views should be as tall as they need to be. I don’t understand this part. How tall is that? I assume you mean that you want the text and table views to be tall enough to show all of their contents, then stacked together and wrapped

Re: Merging scrolling/clipping with NSStackView

2017-01-19 Thread Jonathan Mitchell
> On 19 Jan 2017, at 14:39, Daryle Walker wrote: > > Right now, my window has a table view sitting on top of a text view. Those > templates from Interface Builder have those NSViews surrounded by a clip view > surrounded by a scroll view. But I want to flip that around; put the table > and te

Merging scrolling/clipping with NSStackView

2017-01-19 Thread Daryle Walker
Right now, my window has a table view sitting on top of a text view. Those templates from Interface Builder have those NSViews surrounded by a clip view surrounded by a scroll view. But I want to flip that around; put the table and text views together in a stack view, and surround that with clip