2011-04-16 101 views

回答

4

我想知道如何创建一个窗口 与自定义标题,如应用程序。

大胆NSWindow标题

- titleFont 
{ 
    return [NSFont boldSystemFontOfSize:10]; 
} 

- (NSRect)_titlebarTitleRect 
{ 
    return NSOffsetRect([super _titlebarTitleRect], 0, -1); 
} 

链接:
http://andymatuschak.org/articles/2006/01/11/making-the-hud-item-1-a-frame-themed-party

附加NSWindow定制
(如你所提供的例子)

TunesWindow马特Gemmell(使用背景图像):
- http://mattgemmell.com/source/
定制NSWindow通过马特加拉格尔:
- http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html
DarkWindow拉斐尔Warnault:
- http://www.read-write.fr/blog/?p=32
NSThemeFrame用法:
- http://parmanoir.com/Custom_NSThemeFrame

+0

很好的汇编。 – 2011-04-16 22:05:20

+0

第二个链接来自Matt Gallagher,而不是Gemmell。 – 2011-04-16 22:05:48

+0

@Mark:更正:) – Anne 2011-04-16 22:08:12

相关问题