Changing color of the NSWindow titlebar

后端 未结 3 1454
再見小時候
再見小時候 2021-01-13 20:34

I am developing a desktop application in which I want to change the color of the title bar of an NSWindow. How exactly can I do this?

3条回答
  •  深忆病人
    2021-01-13 21:13

    To change the color of the window's toolbar:

    1. Set window style Textured in Attribute inspector.
    2. In code: [window setBackgroundColor: MyCustomColor];

提交回复
热议问题