简体   繁体   English

基于NSDocument的应用程序,在启动时打开带有“新建文档”按钮的对话框

[英]NSDocument-based app, open dialog with 'New Document' button on launch

TextEdit and Pixelmator both open an open-file-dialog on launch that has a 'New Document' button in the bottom left corner. TextEdit和Pixelmator都在启动时打开一个打开文件对话框,该对话框的左下角具有“新建文档”按钮。

Is there any particular code available to achieve the very same effect? 是否有任何特定的代码可以达到相同的效果?

The reason I ask is that Pixelmator's way of going about it, the 'New Document' button included, is exactly the same as TextEdit, and I figure there must be some simple way to achieve this but I must be missing it. 我问的原因是Pixelmator的处理方式(包括“新建文档”按钮)与TextEdit完全相同,我认为必须有一些简单的方法来实现此目的,但我必须错过它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM