Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 在cocoa中使用图像作为窗口_Objective C_Cocoa_Macos - Fatal编程技术网

Objective c 在cocoa中使用图像作为窗口

Objective c 在cocoa中使用图像作为窗口,objective-c,cocoa,macos,Objective C,Cocoa,Macos,我想知道如何使用图像作为我的窗框。我一直在看,但它谈论的是绘制自定义形状,而不是使用现有图像 我想做一个这样的窗户: 检查Matt Gemmell的TunesWindow示例: 它对边框、角点和中心使用单独的图像 此外,Matt Gemmel还提供了MAAttachedWindow: 面板类似于您问题中显示的面板。Cocoa With Love post告诉您如何做您想做的事情-将您想做的设置为无边框窗口的内容视图。你在哪方面有困难?另外,您是否阅读了文章底部链接到的关于NSThemeFrame

我想知道如何使用图像作为我的窗框。我一直在看,但它谈论的是绘制自定义形状,而不是使用现有图像

我想做一个这样的窗户:


检查Matt Gemmell的TunesWindow示例: 它对边框、角点和中心使用单独的图像

此外,Matt Gemmel还提供了MAAttachedWindow:
面板类似于您问题中显示的面板。

Cocoa With Love post告诉您如何做您想做的事情-将您想做的设置为无边框窗口的内容视图。你在哪方面有困难?另外,您是否阅读了文章底部链接到的关于NSThemeFrame的文章?