开发者

Autosizing boxes and positioning in Cocoa

开发者 https://www.devze.com 2022-12-20 03:14 出处:网络
I\'m creating an application, from which a part looks like this: boo http://img188.imageshack.us/img188/7808/schermafbeelding2010021y.png

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

boo http://img188.imageshack.us/img188/7808/schermafbeelding2010021y.png

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


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...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号