简体   繁体   中英

How can I make a window or NSPanel out of an image?

I'm trying to add some style to my app and it's driving me crazy. I'm wanting to take a image that is transparent and use it as a window or NSPanel. I'm thinking this will have to be done programmatically but I would like to do it in Interface Builder. How can I achieve this effect either way. So far, I've tried both ways and can't achieve it. Any code examples would be much appreciated. Thanks

制作一个无边界窗口 ,并将图像视图设置为其内容视图,并将图像设置为图像视图的图像。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM