开发者

Is it possible to set background image for NSToolbar?

开发者 https://www.devze.com 2023-01-29 11:17 出处:网络
I am a new Mac developer and I have started to learn Cocoa. In my sample application I want to add a background image to my NSToolbar as a theme for my application and I want that image to be the full

I am a new Mac developer and I have started to learn Cocoa. In my sample application I want to add a background image to my NSToolbar as a theme for my application and I want that image to be the full size of the toolbar. But i have checked and didn't get a solution. I want to know if it is really a possible thing.

开发者_运维知识库

Thanks and regards,

Mac 66


There is no public API to do this. You would need to do some "evil" things with private API or create your own toolbar mechanism. If you don't need things like item overflow, user customization, etc. then it might be easier/cleaner just to use standard buttons in the top margin of the window.

0

精彩评论

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