views:

129

answers:

1

Hi,

I'm creating an application, from which a part looks like this:

boo

I all dragged them to a window in IB, but the problem is that the NSImageView, Action Buttons (Suggest, Send, Poke etc...), Information NSBox, and Friends NSTabView can all vary in height. They should always be placed below each other, with a margin of 8px. Just like on Facebook. I thought of a very modified NSSplitView, but maybe there are easier ways. Can anyone help me out?

Edit: I have placed the action buttons in a Custom View with class NSView.

Thanks

A: 

You'll have to manually resize the views yourself. Cocoa does not provide Java-style LayoutManagers. However, I don't think it would be too hard to recreate one...

Dave DeLong
Well, they resize automatically based on their content. The only problem is positioning.
Time Machine
@Koning that's what I meant (sorry for not being clear). You'll have to manually alter each view's origin via the `setFrame:` method (which would also allow you to manipulate height/width at the same time).
Dave DeLong