Bottom bar in NSWindow

前端 未结 3 2060
情书的邮戳
情书的邮戳 2021-02-04 10:01

I am developing an app in Cocoa. I need to show a progress at the bottom bar of window. But I am searching for a solution to put a bottom bar in a NSWindow.

<
相关标签:
3条回答
  • 2021-02-04 10:23

    Well technically the answer of Tom is ok. You can find some comments on this how to handle this in IB.

    In general you should take a look into the OS X Human Interface Guidelines. It recommend not to use bottom bars for new apps.

    0 讨论(0)
  • 2021-02-04 10:27

    This is the code to put a bar at the bottom of the window (like in the finder):

    [theWindow setContentBorderThickness:24.0 forEdge:NSMinYEdge];
    
    0 讨论(0)
  • 2021-02-04 10:29

    Tom's answer is correct, but also take a look at BWToolKit. It includes a few nice controls for working with bottom bars.

    0 讨论(0)
提交回复
热议问题