我被困在一个非常愚蠢的问题上。我用Interface Builder(和xcode3)构建了我的mac osx应用程序用户界面。当应用程序运行时用户界面不可见(仅在界面生成器中)
现在,当我运行我的应用程序时,我看不到应用程序窗口(但只有顶部的菜单)。
MyDocument.xib文件已正确加载(从xCode导航边栏),我可以在界面构建器中看到我的用户界面。
在我的代码我并没有改变这个方法:
- (NSString *)windowNibName
{
// Override returning the nib file name of the document
// If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this method and override -makeWindowControllers instead.
return @"MyDocument";
}
我在做什么错?
感谢