loadNibFile - nib 文件未加载
有没有办法查询为什么 nib 文件无法加载?结果只是“是”或“否”: http://developer.apple.com/library/mac/#documentation/cocoa/reference/ApplicationKit/Classes/NSBundle_AppKitAdditions/Reference/Reference.html。
谢谢,
埃里克
Is there a way to query why a nib file could not load? The result is simply YES or NO: http://developer.apple.com/library/mac/#documentation/cocoa/reference/ApplicationKit/Classes/NSBundle_AppKitAdditions/Reference/Reference.html.
Thanks,
Eric
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法加载 NIB 可能有多种原因(实例和插座之间的连接不良、未找到文件等)。
在命令行上运行应用程序(通过终端应用程序)可以向您显示一些警告/错误日志并帮助您诊断问题。
如果您的应用程序是 namd
CocoaApp
并位于Desktop
文件夹下,则在终端应用程序中键入的命令将为:There can be several reason why a NIB could not be loaded (bad connections between instances and outlets, file not found, etc).
Running the application on the command-line (via the Terminal application) can show you some warning/error logs and help you diagnose the problem.
If your application is namd
CocoaApp
and located under yourDesktop
folder, then the commands to type into the Terminal application will be: