Re: NSStackView basics

2013-12-04 Thread jonat...@mugginsoft.com
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

Re: NSStackView basics

2013-11-12 Thread Tom Harrington
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

Re: NSStackView basics

2013-11-11 Thread Ken Ferry
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

NSStackView basics

2013-11-08 Thread Tom Harrington
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