我已经使用以下方法实现了我的工作表(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
}
工作表出现在我的屏幕中间,如何将其附加到主窗口的顶部并使其显示为“向下滑动”效果?
提前致谢。