我试图将NSPanel显示为图纸。我天真地做了一些沿着这些路线:如何将NSPanel显示为图纸
SheetController *sheetController = [[[SheetController alloc]
initWithWindowNibName:@"Sheet"] autorelease];
[[NSApplication sharedApplication] beginSheet:sheetController.window
modalForWindow:self.window
modalDelegate:self
didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo:nil];
由于某些原因,我不知道,这是行不通的。当这部分代码被调用时,表单瞬间闪烁(因为autorelease
消息)。工作表永远不会挂在窗口上。
如果有人能指出我在哪里可以找到更多信息,那将非常感激。
现货!非常感谢。 – 2009-09-23 02:00:11