0

それは私の最初の質問です。Mac App Store から BlackWhite というゲームをダウンロードします。 http://itunes.apple.com/us/app/blackwhite/id420650954?mt=12 アプリのようなカスタム タイトルのウィンドウを作成する方法を知りたいです。ボーダレスウィンドウですか?しかし、ウィンドウボタンがあります...

4

1 に答える 1

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 カスタマイズ
(提供した例のように)

Matt Gemmell による TunesWindow (背景画像を使用):
- http://mattgemmell.com/source/
Matt Gallagher によるカスタム NSWindow:
- http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac- Rafaël Warnault によるos-x.html
DarkWindow:
- http://www.read-write.fr/blog/?p=32
NSThemeFrame の使用法:
- http://parmanoir.com/Custom_NSThemeFrame

于 2011-04-16T21:41:25.820 に答える