Re: NSStackView - Gravity Question

2015-08-28 Thread Lee Ann Rucker
The doc for stackViewWithViews: says it’s a horizontal layout and they’re added to the “view’s leading gravity area” - if I were writing that I’d use the constant name, it’s easy to overlook. It doesn’t mention it, but if it’s vertical they go in Top. If you just want your views to show up in t

Re: NSStackView - Gravity Question

2015-08-28 Thread Conrad Shultz
> On Aug 28, 2015, at 6:18 AM, Dave wrote: > > I’m looking at: > > https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSStackView_Class/#//apple_ref/occ/clm/NSStackView/stackViewWithViews: > >

Re: NSStackView - Gravity Question

2015-08-28 Thread dangerwillrobinsondanger
You can add them to any gravity. Not all the same one even. Basically the gravity areas mean views added to a gravity area are clustered toward that gravity. If it's top, the line up against the top. Bottom, they sit at the bottom. Center gravity keeps that cluster centered on the center. Thi

NSStackView - Gravity Question

2015-08-28 Thread Dave
Hi, I’m looking at: https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSStackView_Class/#//apple_ref/occ/clm/NSStackView/stackViewWithViews: and wondering if there is any better documentation available for NSStackView? It talks about "Gravity Areas" and I’m confused as to