次の方法でシート(NSPanel)を実装しました。
- (void)showInWindow:(NSWindow *)mainWindow {
if (!finestra1)
[NSBundle loadNibNamed:@"XibName" owner:self];
[NSApp beginSheet:finestra1 modalForWindow:mainWindow modalDelegate:nil didEndSelector:nil contextInfo:nil];
[NSApp runModalForWindow:finestra1]; //This call blocks the execution until [NSApp stopModal] is called
}
シートが画面の中央に表示されます。それをメイン ウィンドウの上部に取り付けて、代わりに「スライド ダウン」効果で表示するにはどうすればよいですか?
前もって感謝します。