I’ve been looking for a Flex VBox equivalent for Cocoa without much luck. The VBox container automatically arranges its child views into a single vertical column and also adjusts its own height to fit.
I took a shot at it. Please note, this is hacky. I’m still looking for an existing solution.
Checkout the gist:
This is really easy to accomplish now using Cocoa Auto Layout. You can position the children and set the container’s size in the layout method.