开发者

How to implement push button bar in Cocoa

Any idea how to recreate the row of buttons effect used by Safari 5.1 for the back/next buttons, or in Xcode 4 for the Editor and View buttons in the toolbar? Basically a set of buttons in a single block, with a thin separator line between each, and rounded corners at the ends.

I don't see anything in the standard controls, but perhaps I just don't know what to search 开发者_StackOverflowfor. Thanks!

Update: here's an image to show what I mean:

How to implement push button bar in Cocoa


Have a look at NSSegmentedControl in interface builder library, try playing with its style attribute.. I hope you will be able to get what you are looking for !

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜