Prompted by this I took a look at NSStackView.
Documentation is limited to header comments and some WWDC session coverage.
However, the class will be very useful for composing dynamic layouts.
It behaves pretty much like its WPF equivalent StackPanel.
One notable difference is that StackPanel remo
Thanks Ken. I suspected it was something like that but didn't know what to
do about it. It also hadn't occurred to me that making the text field
centered didn't necessarily imply anything about the size of the containing
view. With no constraints on the sizes of contained view, it seems that
NSStac
Hi Tom,
I think the problem here is that if you have view A containing textField,
and textField is centered in A, there's no constraint expressing anything
about A's height. A can go to zero height and still have the textField
centered within it.
If you added something giving a height (or fastene
I'm trying to use NSStackView in what should be the most basic way
possible. I create the stack view and add two subviews. But only one of
them is ever visible.
I'm creating the stack view in code (in my app delegate, for purposes of a
test project):
NSStackView *stackView = [NSStackView stac