2011-04-16 102 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

相關問題