答案 0 :(得分:0)
“下拉对话框”称为表格,可以是NSWindow。
可以在NSApplication:beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
上找到显示它们的方法超级简单的实现看起来像这样:
NSWindowController *sheet = [[NSWindowController alloc] initWithWindowNibName:@"Sheet"];
[NSApp beginSheet: sheet.window
modalForWindow: self.view.window // The window from where the sheet will appear
modalDelegate: self
didEndSelector: nil // Optional @selector(didEndSheet:returnCode:contextInfo:)
contextInfo: nil];