在我的应用代表中,我有:
- (BOol) applicationShouldOpenUnTitledfile:(NSApplication *)sender{ [mainWindowController.window makeKeyAndOrderFront:self]; return NO;}
我用它来显示我自己的自定义窗口.但是现在,将显示iCloud打开文件对话框和我自己的对话框.关于如何摆脱iCloud对话框的任何想法?
解决方法 https://developer.apple.com/library/prerelease/content/releasenotes/AppKit/RN-AppKitOlderNotes/index.htmlNSdocument Support for iCloud
In 10.8,NSdocument-based applications with a ubiquity-container-IDentifIErs enTitlement gain new functionality and UI to facilitate iCloud document management.
When iCloud is enabled and an application is first launched or re-activated and no @R_502_5087@ are visible or being restored,instead of creating a new UnTitled document,NSdocumentController will display a non-modal open panel showing the user’s iCloud library.
…
Applications that do not wish to use these features for any or all of their NSdocument subclasses can overrIDe +[NSdocument usesUbiquitousstorage] and return NO. If all of the application’s declared NSdocument subclasses return NO from this method,then NSdocumentController will never show the new non-modal open panel.
因此,如果您可以放弃使用本发行说明中列出的功能,请在[NSdocument usesUbiquitousstorage]中返回NO.我确认您仍然可以从普通对话框中将文件打开/保存到iCloud存储中.
总结以上是内存溢出为你收集整理的objective-c – 启用iCloud – 停止在应用程序启动时显示的打开文件?全部内容,希望文章能够帮你解决objective-c – 启用iCloud – 停止在应用程序启动时显示的打开文件?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)